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/20181031015046-add-subdomai...

14 lines
442 B
JavaScript

module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn('teams', 'subdomain', {
type: Sequelize.STRING,
allowNull: true,
unique: true
});
await queryInterface.addIndex('teams', ['subdomain']);
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn('teams', 'subdomain');
await queryInterface.removeIndex('teams', ['subdomain']);
}
}