Skip to content

Commit

Permalink
Session Current_stage - Not Started as default value (aces#7102)
Browse files Browse the repository at this point in the history
Make Current_stage not nullable with a default value of 'Not Started'

Resolves aces#6874
  • Loading branch information
laemtl authored and AlexandraLivadas committed Jun 29, 2021
1 parent c155849 commit b8bca17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SQL/0000-00-00-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ CREATE TABLE `session` (
`Visit_label` varchar(255) NOT NULL,
`SubprojectID` int(10) unsigned DEFAULT NULL,
`Submitted` enum('Y','N') NOT NULL DEFAULT 'N',
`Current_stage` enum('Not Started','Screening','Visit','Approval','Subject','Recycling Bin') DEFAULT NULL,
`Current_stage` enum('Not Started','Screening','Visit','Approval','Subject','Recycling Bin') NOT NULL DEFAULT 'Not Started',
`Date_stage_change` date DEFAULT NULL,
`Screening` enum('Pass','Failure','Withdrawal','In Progress') DEFAULT NULL,
`Date_screening` date DEFAULT NULL,
Expand Down
2 changes: 2 additions & 0 deletions SQL/New_patches/2020-10-29-session-current-stage-default.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UPDATE `session` set Current_stage = 'Not Started' WHERE Current_stage IS NULL;
ALTER TABLE `session` MODIFY Current_stage enum('Not Started','Screening','Visit','Approval','Subject','Recycling Bin') NOT NULL DEFAULT 'Not Started';

0 comments on commit b8bca17

Please sign in to comment.