|
@@ -12,10 +12,16 @@ module.exports = {
|
|
|
type: Sequelize.TEXT,
|
|
|
allowNull: true, // 根据需要设置是否允许为空
|
|
|
});
|
|
|
+
|
|
|
+ await queryInterface.addColumn('Articles', 'cs', {
|
|
|
+ type: Sequelize.TEXT,
|
|
|
+ allowNull: true, // 根据需要设置是否允许为空
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
async down (queryInterface, Sequelize) {
|
|
|
await queryInterface.removeColumn('Articles', 'type');
|
|
|
await queryInterface.removeColumn('Articles', 'img');
|
|
|
+ await queryInterface.removeColumn('Articles', 'cs');
|
|
|
}
|
|
|
};
|