-
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.
Change
completed_credits
in studyplan
table from an integer into …
…a double
- Loading branch information
1 parent
7d90763
commit 3dd40cb
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
...-worker/src/db/migrations/20240703_01_change_completed_credits_to_double_in_studyplans.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,14 @@ | ||
const { DOUBLE, INTEGER } = require('sequelize') | ||
|
||
module.exports = { | ||
up: async queryInterface => { | ||
await queryInterface.changeColumn('studyplan', 'completed_credits', { | ||
type: DOUBLE, | ||
}) | ||
}, | ||
down: async queryInterface => { | ||
await queryInterface.changeColumn('studyplan', 'completed_credits', { | ||
type: INTEGER, | ||
}) | ||
}, | ||
} |
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