14 lines
442 B
JavaScript
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']);
|
|
}
|
|
} |