[Updater] Drop old study right related tables

This commit is contained in:
Valtteri Kantanen
2024-09-09 16:45:24 +03:00
parent cf1b30cc4c
commit 2d82c69ee3
@@ -0,0 +1,13 @@
module.exports = {
up: async queryInterface => {
return queryInterface.sequelize.transaction(async transaction => {
await queryInterface.sequelize.query('DROP MATERIALIZED VIEW organization_yearly_credits', { transaction })
await queryInterface.dropTable('semester_enrollments', { transaction })
await queryInterface.dropTable('transfers', { transaction })
await queryInterface.dropTable('studyright_elements', { transaction })
await queryInterface.dropTable('element_details', { transaction })
await queryInterface.dropTable('studyright', { transaction })
})
},
down: async () => {},
}