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

Commit e6bae76f by Sascha Depold

use drop table + select

1 parent 737f3b0d
Showing with 2 additions and 2 deletions
...@@ -60,11 +60,11 @@ module.exports = (function() { ...@@ -60,11 +60,11 @@ module.exports = (function() {
} }
ModelFactory.prototype.drop = function() { ModelFactory.prototype.drop = function() {
return query.call(this, this.QueryGenerator.dropTableQuery(this.tableName, this.id)) return this.QueryInterface.dropTable(this.tableName, this.id)
} }
ModelFactory.prototype.all = function() { ModelFactory.prototype.all = function() {
return query.call(this, this.QueryGenerator.selectQuery(this.tableName)) return this.QueryInterface.select(this, this.tableName)
} }
ModelFactory.prototype.count = function(options) { ModelFactory.prototype.count = function(options) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!