This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/migrations/20210310051804-passport.js

20 lines
483 B
JavaScript

'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn("users", "slackData");
await queryInterface.removeColumn("teams", "slackData");
},
down: async (queryInterface, Sequelize) => {
await queryInterface.addColumn("teams", "slackData", {
type: 'JSONB',
allowNull: true,
});
await queryInterface.addColumn("users", "slackData", {
type: 'JSONB',
allowNull: true,
});
}
};