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