📜  续集迁移枚举 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:16.049000             🧑  作者: Mango

代码示例2
queryInterface.changeColumn(
  'table_name',
  'Column_name',
  {
    type: Sequelize.TEXT,
  },
),
queryInterface.sequelize.query('drop type enum_tableName_columnName;')
.then(() => queryInterface.changeColumn(
  'table_name',
  'column_name',
  {
    type: Sequelize.ENUM('value1','value2'),
  },
)),