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

ERROR: type "enum_xxx_status" already existgit

 

reason: github

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

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

 

solution:io

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

相關文章
相關標籤/搜索