mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-12-27 16:56:11 +11:00
24 lines
525 B
JavaScript
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');
|
|
*/
|
|
}
|
|
}
|