Skip to main content
Version: Next

Class: MigrationRunner

migrations.MigrationRunner

Constructors#

constructor#

new MigrationRunner(driver, options, config)

Parameters#

NameType
driverAbstractSqlDriver<AbstractSqlConnection>
optionsMigrationsOptions
configConfiguration<IDatabaseDriver<Connection>>

Defined in#

packages/migrations/src/MigrationRunner.ts:9

Methods#

run#

run(migration, method): Promise<void>

Parameters#

NameType
migrationMigration
method"up" | "down"

Returns#

Promise<void>

Defined in#

packages/migrations/src/MigrationRunner.ts:15


setMasterMigration#

setMasterMigration(trx): void

Parameters#

NameType
trxany

Returns#

void

Defined in#

packages/migrations/src/MigrationRunner.ts:30


unsetMasterMigration#

unsetMasterMigration(): void

Returns#

void

Defined in#

packages/migrations/src/MigrationRunner.ts:34