Colubrina/backend/migrations/20220603090927-messageAttachment.js

20 lines
416 B
JavaScript
Raw Permalink Normal View History

2022-06-05 22:58:18 +10:00
"use strict"
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("Attachments", "messageId", {
type: Sequelize.BIGINT
})
await queryInterface.removeColumn("Messages", "attachments")
},
async down(queryInterface, Sequelize) {
/**
* Add reverting commands here.
*
* Example:
* await queryInterface.dropTable('users');
*/
}
}