📜  续集迁移 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:36.147000             🧑  作者: Mango

代码示例6
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'),
  },
)),