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

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.

 

posted @ 2019-01-05 12:13  ybleeho  阅读(172)  评论(0编辑  收藏  举报