forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
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 2024_02_01_eeg_revised_filters
- Loading branch information
Showing
102 changed files
with
2,924 additions
and
2,147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
"php", | ||
"htdocs", | ||
"modules", | ||
"src", | ||
"src", | ||
"vendor", | ||
"test" | ||
], | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM mysql:5.7 | ||
FROM mariadb:10.5 | ||
|
||
ARG BASE_DIR | ||
|
||
|
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`); |
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 @@ | ||
CREATE TABLE `sex` ( | ||
`Name` varchar(255) NOT NULL, | ||
PRIMARY KEY `Name` (`Name`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores sex options available for candidates in LORIS'; | ||
|
||
INSERT INTO sex (Name) VALUES ('Male'), ('Female'), ('Other'); | ||
|
||
ALTER TABLE candidate | ||
MODIFY COLUMN sex varchar(255) DEFAULT NULL, | ||
MODIFY COLUMN ProbandSex varchar(255) DEFAULT NULL, | ||
ADD KEY `FK_candidate_sex_1` (`Sex`), | ||
ADD KEY `FK_candidate_sex_2` (`ProbandSex`), | ||
ADD CONSTRAINT `FK_candidate_sex_1` FOREIGN KEY (`Sex`) REFERENCES `sex` (`Name`) ON DELETE RESTRICT ON UPDATE CASCADE, | ||
ADD CONSTRAINT `FK_candidate_sex_2` FOREIGN KEY (`ProbandSex`) REFERENCES `sex` (`Name`) ON DELETE RESTRICT ON UPDATE CASCADE; |
Oops, something went wrong.