mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #11359 from Strate/knex_fix_migrator_config
[knex] Fix MigratorConfig according to docs.
This commit is contained in:
+6
-1
@@ -619,7 +619,12 @@ knex.select('*')
|
||||
//
|
||||
// Migrations
|
||||
//
|
||||
var config = { };
|
||||
var config = {
|
||||
directory: "./migrations",
|
||||
extension: "js",
|
||||
tableName: "knex_migrations",
|
||||
disableTransactions: false
|
||||
};
|
||||
knex.migrate.make(name, config);
|
||||
knex.migrate.make(name);
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -532,10 +532,10 @@ declare module "knex" {
|
||||
}
|
||||
|
||||
interface MigratorConfig {
|
||||
database?: string;
|
||||
directory?: string;
|
||||
extension?: string;
|
||||
tableName?: string;
|
||||
disableTransactions?: boolean;
|
||||
}
|
||||
|
||||
interface Migrator {
|
||||
|
||||
Reference in New Issue
Block a user