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.
[Bug fix] Populate parameter_type_category_rel table with imaging and…
… electrophysiology variables (aces#4263) This adds an SQL patch to fix the issue that imaging or electrophysiology parameter_type fields are not linked to a parameter type category via the parameter_type_category_rel table.
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
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
14 changes: 14 additions & 0 deletions
14
SQL/New_patches/2019-01-16_map_parameter_type_and_parameter_type_category_for_imaging.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,14 @@ | ||
INSERT INTO parameter_type_category_rel (ParameterTypeID, ParameterTypeCategoryID) | ||
SELECT DISTINCT ParameterTypeID, ParameterTypeCategoryID | ||
FROM parameter_type, parameter_type_category ptc | ||
WHERE SourceFrom="parameter_file" AND ptc.Name="MRI Variables"; | ||
|
||
|
||
INSERT INTO parameter_type_category (Name, Type) | ||
VALUES ('Electrophysiology Variables', 'Metavars'); | ||
|
||
INSERT INTO parameter_type_category_rel (ParameterTypeID, ParameterTypeCategoryID) | ||
SELECT DISTINCT ParameterTypeID, ParameterTypeCategoryID | ||
FROM parameter_type, parameter_type_category ptc | ||
WHERE SourceFrom="physiological_parameter_file" AND ptc.Name="Electrophysiology Variables"; | ||
|