Skip to main content
Version: 4.4

Interface: Migrator#

knex.Knex.Migrator

Hierarchy#

  • Migrator

Methods#

currentVersion#

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

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<string>

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


down#

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

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

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


forceFreeMigrationsLock#

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

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

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


latest#

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

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

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


list#

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

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

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


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:2129


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:2131


status#

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

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<number>

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


up#

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

Parameters:#

NameType
config?MigratorConfig

Returns: Promise<any>

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

Last updated on by renovate[bot]