-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First publishable version of the programme modules rework. Also minor other fixes like refactorings and logging improved.
- Loading branch information
1 parent
46f8c36
commit 011d70d
Showing
26 changed files
with
400 additions
and
135 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...es/backend/src/database/migrations_kone/20230919_00_add_curriculum_versions_to_kone_db.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
await queryInterface.sequelize.query('TRUNCATE TABLE progress_criteria') | ||
await queryInterface.sequelize.query('TRUNCATE TABLE excluded_courses') | ||
await queryInterface.removeConstraint('excluded_courses', 'excluded_courses_programme_code_course_code_key') | ||
await queryInterface.addColumn('progress_criteria', 'curriculum_version', { | ||
type: Sequelize.STRING, | ||
}) | ||
await queryInterface.addColumn('excluded_courses', 'curriculum_version', { | ||
type: Sequelize.STRING, | ||
}) | ||
}, | ||
down: async queryInterface => { | ||
await queryInterface.removeColumn('progress_criteria', 'curriculum_version') | ||
await queryInterface.removeColumn('excluded_courses', 'curriculum_version') | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.