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