First pass, can create and update
This commit is contained in:
14
server/migrations/20181031015046-add-subdomain-to-team.js
Normal file
14
server/migrations/20181031015046-add-subdomain-to-team.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user