Skip to main content
Version: 5.9

MigrationRunner

Index

Constructors

constructor

  • new MigrationRunner(driver: AbstractSqlDriver<AbstractSqlConnection, AbstractSqlPlatform>, options: MigrationsOptions, config: Configuration<IDatabaseDriver<Connection>>): MigrationRunner
  • Parameters

    • driver: AbstractSqlDriver<AbstractSqlConnection, AbstractSqlPlatform>
    • options: MigrationsOptions
    • config: Configuration<IDatabaseDriver<Connection>>

    Returns MigrationRunner

Methods

run

  • run(migration: Migration, method: up | down): Promise<void>
  • Parameters

    • migration: Migration
    • method: up | down

    Returns Promise<void>

setMasterMigration

  • setMasterMigration(trx: any): void
  • Parameters

    • trx: any

    Returns void

unsetMasterMigration

  • unsetMasterMigration(): void
  • Returns void