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的主要内容,如果未能解决你的问题,请参考以下文章

sequelize db:migrate 和 postgres 的问题

Sequelize Migration:关系 <table> 不存在

Heroku 运行 sequelize db:migrate 时出现“自签名证书”错误

Ruby Sequel.migration 中不区分大小写的唯一性验证

错误:当我执行“sequelize db:migrate”时,“请手动安装 sqlite3 包”

Sqlite外键不匹配sequelize迁移