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 2023_12_05_fix_eeg_chunk_gaps
- Loading branch information
Showing
176 changed files
with
13,914 additions
and
12,382 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,7 @@ indent_size = 2 | |
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
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
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
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
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE `diagnosis_evolution` ( | ||
`DxEvolutionID` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
`Name` varchar(255) DEFAULT NULL, | ||
`ProjectID` int(10) unsigned NOT NULL, | ||
`visitLabel` varchar(255) DEFAULT NULL, | ||
`instrumentName` varchar(255) DEFAULT NULL, | ||
`sourceField` varchar(255) DEFAULT NULL, | ||
`orderNumber` int(10) unsigned DEFAULT NULL, | ||
CONSTRAINT `PK_diagnosis_evolution` PRIMARY KEY (`DxEvolutionID`), | ||
CONSTRAINT `UK_diagnosis_evolution_Name` UNIQUE KEY `Name` (`Name`), | ||
CONSTRAINT `FK_diagnosis_evolution_ProjectID` FOREIGN KEY (`ProjectID`) REFERENCES `Project` (`ProjectID`) ON DELETE RESTRICT ON UPDATE CASCADE, | ||
CONSTRAINT `FK_diagnosis_evolution_instrumentName` FOREIGN KEY (`instrumentName`) REFERENCES `test_names` (`Test_name`) ON DELETE RESTRICT ON UPDATE CASCADE | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
CREATE TABLE `candidate_diagnosis_evolution_rel` ( | ||
`CandID` int(6) NOT NULL, | ||
`DxEvolutionID` int(10) unsigned NOT NULL, | ||
`Diagnosis` text DEFAULT NULL, | ||
`Confirmed` enum('Y', 'N') DEFAULT NULL, | ||
`LastUpdate` datetime NOT NULL DEFAULT NOW() ON UPDATE NOW(), | ||
CONSTRAINT `PK_candidate_diagnosis_evolution_rel` PRIMARY KEY (`CandID`, `DxEvolutionID`), | ||
CONSTRAINT `FK_candidate_diagnosis_evolution_rel_CandID` FOREIGN KEY (`CandID`) REFERENCES `candidate` (`CandID`) ON DELETE RESTRICT ON UPDATE RESTRICT, | ||
CONSTRAINT `FK_candidate_diagnosis_evolution_rel_DxEvolutionID` FOREIGN KEY (`DxEvolutionID`) REFERENCES `diagnosis_evolution` (`DxEvolutionID`) ON DELETE RESTRICT ON UPDATE CASCADE | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
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,8 @@ | ||
-- NOTE: This SQL patch follows up the running of single use tool `tools/single_use/Convert_LorisMenuID_to_ModuleID.php` | ||
-- that was necessary to upgrade the `issues` table from LORIS version 22 to version 23. The tool forgot | ||
-- to include an upgrade of the `issues_history` table, which is now tackled by this SQL patch. | ||
|
||
-- delete from issues_history any orphaned module IDs | ||
DELETE FROM issues_history WHERE fieldChanged='module' AND issueID IN (SELECT issueID FROM issues WHERE module IS NULL); | ||
-- set issues history module ID to correct moduleID, replacing old LorisMenu ID | ||
UPDATE issues_history ih SET newValue=(SELECT i.module FROM issues i WHERE i.issueID=ih.issueID) WHERE fieldChanged='module'; |
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,55 @@ | ||
-- Add the EEG Pipeline Config group | ||
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, Label, OrderNumber) | ||
VALUES ('eeg_pipeline', 'EEG Pipeline settings', 1, 0, 'EEG Pipeline', 15); | ||
|
||
-- Add the EEGS3DataPath Config | ||
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, Label, OrderNumber, Parent) | ||
SELECT 'EEGS3DataPath', 'EEG S3 data path for assembly data', 1, 0, 'EEG S3 data path', 15, ID | ||
FROM ConfigSettings | ||
WHERE Name = 'eeg_pipeline'; | ||
|
||
UPDATE | ||
ConfigSettings cs1, | ||
( | ||
SELECT * | ||
FROM ConfigSettings | ||
WHERE Name = 'eeg_pipeline' | ||
) AS cs2 | ||
SET cs1.Parent = cs2.ID | ||
WHERE cs1.Name = 'EEGUploadIncomingPath'; | ||
|
||
-- Add the Imaging Pipeline Config group | ||
UPDATE ConfigSettings SET OrderNumber = 14 WHERE Name = 'imaging_pipeline'; | ||
|
||
UPDATE | ||
ConfigSettings cs1, | ||
( | ||
SELECT * | ||
FROM ConfigSettings | ||
WHERE Name = 'imaging_pipeline' | ||
) AS cs2 | ||
SET cs1.Parent = cs2.ID | ||
WHERE cs1.Name = 'MRICodePath'; | ||
|
||
UPDATE | ||
ConfigSettings cs1, | ||
( | ||
SELECT * | ||
FROM ConfigSettings | ||
WHERE Name = 'imaging_pipeline' | ||
) AS cs2 | ||
SET cs1.Parent = cs2.ID | ||
WHERE cs1.Name = 'MRIUploadIncomingPath'; | ||
|
||
UPDATE | ||
ConfigSettings cs1, | ||
( | ||
SELECT * | ||
FROM ConfigSettings | ||
WHERE Name = 'imaging_pipeline' | ||
) AS cs2 | ||
SET cs1.Parent = cs2.ID | ||
WHERE cs1.Name = 'MINCToolsPath'; | ||
|
||
-- Add default value to electrophysiology_uploader UploadDate | ||
ALTER TABLE `electrophysiology_uploader` MODIFY COLUMN `UploadDate` DateTime NOT NULL DEFAULT CURRENT_TIMESTAMP; |
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,2 @@ | ||
ALTER TABLE candidate_consent_rel MODIFY COLUMN `Status` enum('yes', 'no', 'not_applicable') DEFAULT NULL; | ||
ALTER TABLE candidate_consent_history MODIFY COLUMN `Status` enum('yes', 'no', 'not_applicable') DEFAULT NULL; |
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,6 @@ | ||
INSERT INTO permissions (code, description, moduleID) | ||
VALUES ( | ||
'dataquery_admin', | ||
'Dataquery Admin', | ||
(SELECT ID FROM modules WHERE Name='dataquery') | ||
); |
Oops, something went wrong.