-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove STARTED stage from the backend and database
- Loading branch information
Tereshchenko Aleksandr
committed
Aug 20, 2024
1 parent
2df4ec9
commit cdd98b2
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/server/db/migrations/20240820_00_remove_started_status_option.cjs
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,20 @@ | ||
const { DataTypes, UUIDV4 } = require('sequelize') | ||
|
||
module.exports = { | ||
up: async queryInterface => { | ||
// remove the 'started' option from the status column of theses table | ||
await queryInterface.changeColumn('theses', 'status', { | ||
type: DataTypes.ENUM, | ||
values: ['PLANNING', 'IN_PROGRESS', 'COMPLETED', 'CANCELLED'], | ||
allowNull: false, | ||
}) | ||
}, | ||
down: async queryInterface => { | ||
// add the 'started' option back to the status column of theses table | ||
await queryInterface.changeColumn('theses', 'status', { | ||
type: DataTypes.ENUM, | ||
values: ['PLANNING', 'STARTED', 'IN_PROGRESS', 'COMPLETED', 'CANCELLED'], | ||
allowNull: false, | ||
}) | ||
} | ||
} |
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