Skip to main content
Version: 5.9

MigrationStorage

Implements

  • UmzugStorage

Index

Constructors

constructor

  • new MigrationStorage(driver: AbstractSqlDriver<AbstractSqlConnection, AbstractSqlPlatform>, options: MigrationsOptions): MigrationStorage
  • Parameters

    • driver: AbstractSqlDriver<AbstractSqlConnection, AbstractSqlPlatform>
    • options: MigrationsOptions

    Returns MigrationStorage

Methods

ensureTable

  • ensureTable(): Promise<void>
  • Returns Promise<void>

executed

  • executed(): Promise<string[]>
  • Returns Promise<string[]>

getExecutedMigrations

  • getExecutedMigrations(): Promise<MigrationRow[]>
  • Returns Promise<MigrationRow[]>

logMigration

  • logMigration(params: MigrationParams<any>): Promise<void>
  • Parameters

    • params: MigrationParams<any>

    Returns Promise<void>

setMasterMigration

  • setMasterMigration(trx: any): void
  • Parameters

    • trx: any

    Returns void

unlogMigration

  • unlogMigration(params: MigrationParams<any>): Promise<void>
  • Parameters

    • params: MigrationParams<any>

    Returns Promise<void>

unsetMasterMigration

  • unsetMasterMigration(): void
  • Returns void