如何撤消续集迁移枚举类型

how can undo sequelize migration enum type

我使用 PostgreSQL 数据库,它有一个枚举类型的列,它有一些像 a,b,c

这样的枚举

现在我用这段代码

在其中添加一个值,例如 cv-resume
module.exports = {
up: async (queryInterface, Sequelize) => {
      await queryInterface.sequelize.query('ALTER TYPE "enum_Attachment_type" ADD VALUE \'cv-resume\' ')
}

我应该如何在 down 函数中撤消它,我不想删除其他枚举类型的数据 因为每种类型在附件中都有自己的数据table

来自documentation

Although enum types are primarily intended for static sets of values, there is support for adding new values to an existing enum type, and for renaming values (see ALTER TYPE). Existing values cannot be removed from an enum type, nor can the sort ordering of such values be changed, short of dropping and re-creating the enum type.

所以除了删除并重新创建枚举之外,我看不到任何其他“撤消”的方法。

更新:检查