Version: 4.3

Interface: IMigrator

Hierarchy

  • IMigrator

Methods

createInitialMigration

createInitialMigration(path?: string): Promise<MigrationResult>

Defined in packages/core/src/typings.ts:339

Parameters:

NameType
path?string

Returns: Promise<MigrationResult>


createMigration

createMigration(path?: string, blank?: boolean, initial?: boolean): Promise<MigrationResult>

Defined in packages/core/src/typings.ts:338

Parameters:

NameType
path?string
blank?boolean
initial?boolean

Returns: Promise<MigrationResult>


down

down(options?: string | string[] | MigrateOptions): Promise<UmzugMigration[]>

Defined in packages/core/src/typings.ts:343

Parameters:

NameType
options?string | string[] | MigrateOptions

Returns: Promise<UmzugMigration[]>


getExecutedMigrations

getExecutedMigrations(): Promise<MigrationRow[]>

Defined in packages/core/src/typings.ts:340

Returns: Promise<MigrationRow[]>


getPendingMigrations

getPendingMigrations(): Promise<UmzugMigration[]>

Defined in packages/core/src/typings.ts:341

Returns: Promise<UmzugMigration[]>


up

up(options?: string | string[] | MigrateOptions): Promise<UmzugMigration[]>

Defined in packages/core/src/typings.ts:342

Parameters:

NameType
options?string | string[] | MigrateOptions

Returns: Promise<UmzugMigration[]>

Last updated on by Martin Adámek