码迷,mamicode.com
首页 > 编程语言 > 详细

sequelize migration delete enum col and want that col back occur error

时间:2019-01-05 13:36:37      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:col   ant   issue   https   display   err   wan   read   mode   

ERROR: type "enum_xxx_status" already exist

 

reason: 

Dropping an enum column does not drop the enum itself. Postgre issue 

https://github.com/sequelize/sequelize/issues/8859

 

solution:

my solution: dont use sequelize migration:create ,add the col to create model migration.

 

sequelize migration delete enum col and want that col back occur error

标签:col   ant   issue   https   display   err   wan   read   mode   

原文地址:https://www.cnblogs.com/ybleeho/p/10223974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!