Merge pull request #11359 from Strate/knex_fix_migrator_config

[knex] Fix MigratorConfig according to docs.
This commit is contained in:
Andy
2016-09-21 07:02:16 -07:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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);
+1 -1
View File
@@ -532,10 +532,10 @@ declare module "knex" {
}
interface MigratorConfig {
database?: string;
directory?: string;
extension?: string;
tableName?: string;
disableTransactions?: boolean;
}
interface Migrator {