首页 > 编程语言 > 详细

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

时间:2019-01-05 12:38:01      阅读:127      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!