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

Commit 14c5a95f by Mick Hansen

remove hard require to query generator (should go through dialect instead)

1 parent 390e36c3
Showing with 1 additions and 4 deletions
......@@ -14,10 +14,7 @@ module.exports = (function() {
**/
var QueryInterface = function(sequelize) {
this.sequelize = sequelize;
this.QueryGenerator = require('./dialects/' + this.sequelize.options.dialect + '/query-generator');
this.QueryGenerator.options = this.sequelize.options;
this.QueryGenerator._dialect = this.sequelize.dialect;
this.QueryGenerator.sequelize = this.sequelize;
this.QueryGenerator = this.sequelize.dialect.QueryGenerator;
};
QueryInterface.prototype.createSchema = function(schema) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!