不要怂,就是干,撸起袖子干!

Commit a6c1f8f9 by Sushant

fix(queryInterface/getForeignKeysForTables): use FOREIGNKEYS query type

1 parent c933bed7
......@@ -664,12 +664,12 @@ class QueryInterface {
}
getForeignKeysForTables(tableNames, options) {
options = options || {};
if (tableNames.length === 0) {
return Promise.resolve({});
}
options = _.assign({}, options || {}, { type: QueryTypes.FOREIGNKEYS });
return Promise.map(tableNames, tableName =>
this.sequelize.query(this.QueryGenerator.getForeignKeysQuery(tableName, this.sequelize.config.database), options).get(0)
).then(results => {
......
......@@ -283,8 +283,7 @@ describe(Support.getTestDialectTeaser('Model'), () => {
json: {
lastLogin: {$between: [before, after]}
}
},
logging: console.log.bind(console)
}
}).then(events => {
const event = events[0];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!