Skip to main content
Version: Next

MigrationStorage

Implements

  • UmzugStorage

Index

Constructors

constructor

Methods

ensureTable

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

executed

  • executed(): Promise<string[]>
  • Gets list of executed migrations.


    Returns Promise<string[]>

getExecutedMigrations

logMigration

  • logMigration(params: MigrationParams<any>): Promise<void>
  • Logs migration to be considered as executed.


    Parameters

    • params: MigrationParams<any>

    Returns Promise<void>

setMasterMigration

  • setMasterMigration(trx: any): void
  • Parameters

    • trx: any

    Returns void

unlogMigration

  • unlogMigration(params: MigrationParams<any>): Promise<void>
  • Unlogs migration (makes it to be considered as pending).


    Parameters

    • params: MigrationParams<any>

    Returns Promise<void>

unsetMasterMigration

  • unsetMasterMigration(): void
  • Returns void