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

Commit 10f22675 by Sascha Depold

Merge pull request #155 from kenperkins/master

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