service -> serviceId

This commit is contained in:
Tom Moor
2018-06-01 15:13:05 -04:00
parent b7b5bac5c3
commit 2337b9df7f
12 changed files with 23 additions and 14 deletions

View File

@ -0,0 +1,10 @@
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.renameColumn('authentications', 'serviceId', 'service');
await queryInterface.renameColumn('integrations', 'serviceId', 'service');
},
down: async (queryInterface, Sequelize) => {
await queryInterface.renameColumn('authentications', 'service', 'serviceId');
await queryInterface.renameColumn('integrations', 'service', 'serviceId');
}
}