mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Updater] Drop old study right related tables
This commit is contained in:
+13
@@ -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 () => {},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user