DB: Generalize table and model names

This commit is contained in:
Minz committed 2023-02-24 23:51:32 +01:00
1 parent 9661c65b27
commit 3b67c140af
3 files changed
+20 -7

No files matched your search

@@ -0,0 +1,13 @@
'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.renameTable('Bands', 'Groups');
await queryInterface.renameColumn('Characters', 'bandId', 'groupId');
},
async down(queryInterface, Sequelize) {
await queryInterface.renameColumn('Characters', 'groupId', 'bandId');
await queryInterface.renameTable('Groups', 'Bands');
}
};