mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
Add course_unit_type to course-model
This commit is contained in:
@@ -47,6 +47,9 @@ Course.init(
|
||||
substitutions: {
|
||||
type: JSONB,
|
||||
},
|
||||
course_unit_type: {
|
||||
type: STRING,
|
||||
},
|
||||
},
|
||||
{
|
||||
underscored: false,
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
const { STRING } = require('sequelize')
|
||||
|
||||
module.exports = {
|
||||
up: async queryInterface => {
|
||||
await queryInterface.addColumn('course', 'course_unit_type', {
|
||||
type: STRING,
|
||||
})
|
||||
},
|
||||
down: async queryInterface => {
|
||||
await queryInterface.deleteColumn('course', 'course_unit_type')
|
||||
},
|
||||
}
|
||||
@@ -47,6 +47,9 @@ Course.init(
|
||||
substitutions: {
|
||||
type: JSONB,
|
||||
},
|
||||
course_unit_type: {
|
||||
type: STRING,
|
||||
},
|
||||
},
|
||||
{
|
||||
underscored: false,
|
||||
|
||||
Reference in New Issue
Block a user