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
Tom Moor 5d6f68d399
feat: Move to passport for authentication (#1934)
- Added `accountProvisioner`
- Move authentication to use passport strategies
- Make authentication more pluggable
- Change language of services -> providers

closes #1120
2021-03-11 10:02:22 -08:00

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,
});
}
};