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

Posted ybleeho

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.

 

以上是关于sequelize migration delete enum col and want that col back occur error的主要内容,如果未能解决你的问题,请参考以下文章