Migrator General Functions string migrator
Creates a migration file. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface
Name | Type | Required | Default | Description |
---|---|---|---|---|
migrationName | string | Yes | ||
templateName | string | No | ||
migrationPrefix | string | No | timestamp |
// Create an empty migration file
result=application.wheels.migrator.createMigration("MyMigrationFile");
// Or Create a migration file from the create-table template
result=application.wheels.migrator.createMigration("MyMigrationFile","create-table");