add a func to create a TypeMigrator