1. 程式人生 > >sequelize migration delete enum col and want that col back occur error

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

migration git err postgre eas pin back use read

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