Colubrina/backend/migrations/20220519114246-edited.js
2022-06-05 22:58:18 +10:00

24 lines
525 B
JavaScript

"use strict"
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn("Messages", "edited", {
type: Sequelize.BOOLEAN,
allowNull: false,
defaultValue: false
})
await queryInterface.addColumn("Messages", "editedAt", {
type: Sequelize.DATE,
allowNull: true
})
},
down: async (queryInterface, Sequelize) => {
/**
* Add reverting commands here.
*
* Example:
* await queryInterface.dropTable('users');
*/
}
}