'use strict'; /** @type {import('sequelize-cli').Migration} */ module.exports = { async up (queryInterface, Sequelize) { // 将content字段从TEXT改为LONGTEXT以支持更大的内容 await queryInterface.changeColumn('Articles', 'content', { type: Sequelize.TEXT('long'), allowNull: true }); }, async down (queryInterface, Sequelize) { // 回滚时将content字段改回TEXT await queryInterface.changeColumn('Articles', 'content', { type: Sequelize.TEXT, allowNull: true }); } };