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

Commit b5b98aba by Mick Hansen

factoryManager > modelManager

1 parent 684c3528
Showing with 1 additions and 1 deletions
......@@ -208,7 +208,7 @@ module.exports = (function() {
// Since postgres has a special case for enums, we should drop the related
// enum type within the table and attribute
if (self.sequelize.options.dialect === 'postgres') {
var instanceTable = self.sequelize.instanceFactoryManager.getModel(tableName, { attribute: 'tableName' });
var instanceTable = self.sequelize.modelManager.getModel(tableName, { attribute: 'tableName' });
if (!!instanceTable) {
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!