Class: AbstractMigration

AbstractMigration(options)

Abstract class for single migration.

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}

Check if the migration applies to the database

Source:
Returns:
Type
Promise

(async) migrate(batch) → {Promise}

Run the actual migration

Parameters:
Name Type Description
batch Batch
Source:
Returns:
Type
Promise

warning()

Log warnings for skipped migrations.

Source: