Skip to main content
Version: 4.4

Interface: MigrationSource<TMigrationSpec>#

knex.Knex.MigrationSource

Type parameters#

Name
TMigrationSpec

Hierarchy#

  • MigrationSource

Methods#

getMigration#

getMigration(migration: TMigrationSpec): Migration

Parameters:#

NameType
migrationTMigrationSpec

Returns: Migration

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


getMigrationName#

getMigrationName(migration: TMigrationSpec): string

Parameters:#

NameType
migrationTMigrationSpec

Returns: string

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


getMigrations#

getMigrations(loadExtensions: readonly string[]): Promise<TMigrationSpec[]>

Parameters:#

NameType
loadExtensionsreadonly string[]

Returns: Promise<TMigrationSpec[]>

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

Last updated on by Martin Adámek