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.
Files
outline/server/migrations/20160911230444-user-optional-slack-id.js
2017-04-26 21:47:03 -07:00

31 lines
703 B
JavaScript

/* eslint-disable */
'use strict';
module.exports = {
up: function(queryInterface, Sequelize) {
queryInterface.changeColumn('users', 'slackId', {
type: Sequelize.STRING,
unique: false,
allowNull: true,
});
queryInterface.changeColumn('teams', 'slackId', {
type: Sequelize.STRING,
unique: false,
allowNull: true,
});
},
down: function(queryInterface, Sequelize) {
queryInterface.changeColumn('users', 'slackId', {
type: Sequelize.STRING,
unique: true,
allowNull: false,
});
queryInterface.changeColumn('teams', 'slackId', {
type: Sequelize.STRING,
unique: true,
allowNull: false,
});
},
};