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

Commit 00399231 by sdepold

added deprecation warning + fixed logging in migrator.js

1 parent 10f22675
Showing with 7 additions and 3 deletions
......@@ -15,10 +15,12 @@ module.exports = (function() {
to: null,
logging: console.log
}, options || {})
}
if(this.options.logging === true)
if(this.options.logging === true) {
console.log('DEPRECATION WARNING: The logging-option should be either a function or false. Default: console.log')
this.options.logging = console.log
}
}
Object.defineProperty(Migrator.prototype, "queryInterface", {
get: function() {
......
......@@ -16,8 +16,10 @@ module.exports = (function() {
sync: {}
}, options || {})
if(this.options.logging === true)
if(this.options.logging === true) {
console.log('DEPRECATION WARNING: The logging-option should be either a function or false. Default: console.log')
this.options.logging = console.log
}
this.config = {
database: database,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!