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/20180528233910-rename-servi...

10 lines
443 B
JavaScript

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');
}
}