Skip to main content
Version: 4.5

Interface: Migrator#

knex.Knex.Migrator

Methods#

currentVersion#

currentVersion(config?: MigratorConfig): Promise<string>

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<string>

Defined in: node_modules/knex/types/index.d.ts:2139


down#

down(config?: MigratorConfig): Promise<any>

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

Defined in: node_modules/knex/types/index.d.ts:2142


forceFreeMigrationsLock#

forceFreeMigrationsLock(config?: MigratorConfig): Promise<any>

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

Defined in: node_modules/knex/types/index.d.ts:2143


latest#

latest(config?: MigratorConfig): Promise<any>

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

Defined in: node_modules/knex/types/index.d.ts:2136


list#

list(config?: MigratorConfig): Promise<any>

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

Defined in: node_modules/knex/types/index.d.ts:2140


make#

make(name: string, config?: MigratorConfig): Promise<string>

Parameters:#

NameType
namestring
config?MigratorConfig

Returns: Promise<string>

Defined in: node_modules/knex/types/index.d.ts:2135


rollback#

rollback(config?: MigratorConfig, all?: boolean): Promise<any>

Parameters:#

NameType
config?MigratorConfig
all?boolean

Returns: Promise<any>

Defined in: node_modules/knex/types/index.d.ts:2137


status#

status(config?: MigratorConfig): Promise<number>

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<number>

Defined in: node_modules/knex/types/index.d.ts:2138


up#

up(config?: MigratorConfig): Promise<any>

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

Defined in: node_modules/knex/types/index.d.ts:2141

Last updated on by Martin Adámek