Skip to content

Commit

Permalink
Remove ThesisCourses-table
Browse files Browse the repository at this point in the history
closes #3334
  • Loading branch information
saarasat committed Mar 7, 2022
1 parent 9b8db20 commit 637f23a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
up: async queryInterface => {
await queryInterface.dropTable('thesis_courses')
},
down: async () => {},
}
15 changes: 0 additions & 15 deletions services/backend/src/models/models_kone.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ const MandatoryCourseLabels = sequelizeKone.define('mandatory_course_labels', {
},
})

const ThesisCourse = sequelizeKone.define('thesis_courses', {
programmeCode: {
primaryKey: true,
type: Sequelize.STRING,
},
courseCode: {
primaryKey: true,
type: Sequelize.STRING,
},
thesisType: {
type: Sequelize.ENUM([ThesisTypeEnums.BACHELOR, ThesisTypeEnums.MASTER]),
},
})

const CustomPopulationSearch = sequelizeKone.define('custom_population_searches', {
id: {
primaryKey: true,
Expand Down Expand Up @@ -173,7 +159,6 @@ module.exports = {
MandatoryCourse,
TagStudent,
Tag,
ThesisCourse,
ThesisTypeEnums,
MandatoryCourseLabels,
CustomPopulationSearch,
Expand Down

0 comments on commit 637f23a

Please sign in to comment.