-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2020-02-11-new-schedule
- Loading branch information
Showing
115 changed files
with
27,838 additions
and
22,213 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
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
17 changes: 17 additions & 0 deletions
17
SQL/New_patches/2024-01-29-Physiological-Events-Replace-Annotations.sql
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,17 @@ | ||
-- Dropping all tables regarding annotations | ||
DROP TABLE physiological_annotation_archive; | ||
DROP TABLE physiological_annotation_rel; | ||
DROP TABLE physiological_annotation_instance; | ||
DROP TABLE physiological_annotation_parameter; | ||
DROP TABLE physiological_annotation_label; | ||
DROP TABLE physiological_annotation_file; | ||
DROP TABLE physiological_annotation_file_type; | ||
|
||
-- Event files are always associated to Projects, sometimes exclusively (dataset-scope events.json files) | ||
-- Add ProjectID and make PhysiologicalFileID DEFAULT NULL (ProjectID should ideally not be NULLable) | ||
ALTER TABLE `physiological_event_file` | ||
CHANGE `PhysiologicalFileID` `PhysiologicalFileID` int(10) unsigned DEFAULT NULL, | ||
ADD COLUMN `ProjectID` int(10) unsigned DEFAULT NULL AFTER `PhysiologicalFileID`, | ||
ADD KEY `FK_physiological_event_file_project_id` (`ProjectID`), | ||
ADD CONSTRAINT `FK_physiological_event_file_project_id` | ||
FOREIGN KEY (`ProjectID`) REFERENCES `Project` (`ProjectID`); |
Oops, something went wrong.