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

Commit cb42f0d8 by sdepold

minor refactoring

1 parent 370c22d7
...@@ -2,8 +2,6 @@ var Utils = require("../../utils") ...@@ -2,8 +2,6 @@ var Utils = require("../../utils")
module.exports = (function() { module.exports = (function() {
var Query = function(database, callee, options) { var Query = function(database, callee, options) {
var self = this
this.database = database this.database = database
this.callee = callee this.callee = callee
this.options = Utils._.extend({ this.options = Utils._.extend({
......
...@@ -37,7 +37,7 @@ module.exports = (function() { ...@@ -37,7 +37,7 @@ module.exports = (function() {
self.showAllTables().success(function(tableNames) { self.showAllTables().success(function(tableNames) {
tableNames.forEach(function(tableName) { tableNames.forEach(function(tableName) {
chainer.add(self.sequelize.getQueryInterface().dropTable(tableName)) chainer.add(self.dropTable(tableName))
}) })
chainer chainer
.run() .run()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!