mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 02:23:28 +08:00
12 lines
395 B
Text
12 lines
395 B
Text
|
module.exports = {
|
||
|
up: async (queryInterface, Sequelize) => {
|
||
|
const {sequelize} = queryInterface;
|
||
|
console.log("querying db");
|
||
|
await sequelize.query("ALTER TABLE metadata ADD COLUMN `expiration` DATETIME");
|
||
|
},
|
||
|
down: async (queryInterface, Sequelize) => {
|
||
|
const {sequelize} = queryInterface;
|
||
|
await sequelize.query("ALTER TABLE metadata DROP COLUMN `expiration`");
|
||
|
},
|
||
|
}
|