Constructor
new AbstractMigration(options)
Create migration object.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
- Source:
Methods
(static) info() → {Object}
Return information about the migraiton
- Source:
Returns:
- Type
- Object
(async) check() → {Promise.<MigrationType>}
Check if the migration applies to the database
- Source:
Returns:
- Type
- Promise.<MigrationType>
(async) migrate(b, ctx) → {Promise}
Run the actual migration
Parameters:
Name | Type | Description |
---|---|---|
b |
Batch | |
ctx |
MigrationContext |
- Source:
Returns:
- Type
- Promise
warning()
Log warnings for skipped migrations.
- Source: