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

Commit 90420066 by Ken Perkins

Adding check in case options.logging is explicitly set to true

1 parent 89441cb1
Showing with 6 additions and 0 deletions
......@@ -17,6 +17,9 @@ module.exports = (function() {
}, options || {})
}
if(this.options.logging === true)
this.options.logging = console.log
Object.defineProperty(Migrator.prototype, "queryInterface", {
get: function() {
return this.sequelize.getQueryInterface()
......
......@@ -16,6 +16,9 @@ module.exports = (function() {
sync: {}
}, options || {})
if(this.options.logging === true)
this.options.logging = console.log
this.config = {
database: database,
username: username,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!