mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[knex] Fix MigratorConfig according to docs.
As described in http://knexjs.org/#Migrations-API, there is no `database` config parameter and there is `disableTransaction` parameter
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