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

Commit 8c678a7e by Mick Hansen

Merge pull request #1646 from siyangbi/bugfix-destroy-not-use-schema

* Fix destroy function not using schema
2 parents b786db28 94ec1469
Showing with 1 additions and 1 deletions
......@@ -516,7 +516,7 @@ module.exports = (function() {
query = self.save(options)
} else {
var identifier = self.__options.hasPrimaryKeys ? self.primaryKeyValues : { id: self.id };
query = self.QueryInterface.delete(self, self.QueryInterface.QueryGenerator.addSchema(self.Model.tableName, self.Model.options.schema), identifier, options)
query = self.QueryInterface.delete(self, self.QueryInterface.QueryGenerator.addSchema(self.Model), identifier, options)
}
query.on('sql', function(sql) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!