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

Commit d957be10 by Jan Aagaard Meier

Fix argument to getDao in dropTable. closes #3024

1 parent cfdd50a8
Showing with 1 additions and 1 deletions
......@@ -188,7 +188,7 @@ module.exports = (function() {
// enum type within the table and attribute
if (self.sequelize.options.dialect === 'postgres') {
// Find the table that we're trying to drop
var daoTable = self.sequelize.daoFactoryManager.getDAO(tableName, 'tableName');
var daoTable = self.sequelize.daoFactoryManager.getDAO(tableName, { attribute: 'tableName' });
if (!!daoTable) {
var getTableName = (!options || !options.schema || options.schema === 'public' ? '' : options.schema + '_') + tableName;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!