Skip to content

Commit

Permalink
Bring release patch in line with schema and patch (#1859)
Browse files Browse the repository at this point in the history
* Bring release patch in line with schema and patch

* move removing of slash at the end of release patch

* put back extra slashes
  • Loading branch information
gluneau authored and driusan committed May 30, 2016
1 parent bc0b07e commit 789a9a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SQL/Release_patches/15.10_To_16.0_upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ UPDATE files_qcstatus AS fq, parameter_file AS pf, parameter_type AS pt SET fq.S
-- Remove all Selected values from parameter_file
-- DELETE FROM parameter_file WHERE ParameterTypeID=(SELECT ParameterTypeID FROM parameter_type WHERE Name='Selected');
-- DELETE FROM parameter_type WHERE Name="Selected";
UPDATE Config SET Value = LEFT(Value , LENGTH(Value)-1) WHERE ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='url') AND RIGHT(Value,1) = "/";
UPDATE LorisMenu SET Link = RIGHT(Link, LENGTH(Link)-1) WHERE LEFT(Link,1) = "/";ALTER TABLE test_battery ADD instr_order tinyint after firstVisit;
ALTER TABLE test_battery ADD instr_order tinyint after firstVisit;
ALTER TABLE test_subgroups ADD group_order tinyint after Subgroup_name;
-- Update the Dataquery Menu Link
UPDATE LorisMenu SET Link='/dataquery/' WHERE Label='Data Query Tool';
Expand Down Expand Up @@ -407,4 +406,6 @@ ON DUPLICATE KEY UPDATE content='The Imaging Uploader allows users to upload ima
updated='2016-04-29 00:00:00';

REPLACE INTO help (parentID, hash, topic, content, updated) VALUES(IFNULL((SELECT h.helpID FROM help as h WHERE h.topic LIKE 'Configuration%'),-1), md5('project'), 'Project', 'You then click on "New ProjectID", fill in the fields on the right, click save. Immediately refresh the page to view your new project. Clicking save more than once will register a duplicate project ID. If you create an extra ID, you have to delete it from the database manually with an sql command.\n\nDefine all projectID-subprojectID relationships by populating the project_rel table, e.g.\n\nINSERT INTO `project_rel` VALUES (1,1),(1,2),(2,3);', '2016-04-01 00:00:00');
REPLACE INTO help (parentID, hash, topic, content, updated) VALUES(IFNULL((SELECT h.helpID FROM help as h WHERE h.topic LIKE 'Configuration%'),-1), md5('subproject'), 'Subproject', 'You then click on "New SubprojectID", fill in the fields on the right, click save. Immediately refresh the page to view your new subproject. Clicking save more than once will register a duplicate subproject ID. If you create an extra ID, you have to delete it from the database manually with an sql command.\n\nDefine all projectID-subprojectID relationships by populating the project_rel table, e.g.\n\nINSERT INTO `project_rel` VALUES (1,1),(1,2),(2,3);', '2016-04-01 00:00:00');
REPLACE INTO help (parentID, hash, topic, content, updated) VALUES(IFNULL((SELECT h.helpID FROM help as h WHERE h.topic LIKE 'Configuration%'),-1), md5('subproject'), 'Subproject', 'You then click on "New SubprojectID", fill in the fields on the right, click save. Immediately refresh the page to view your new subproject. Clicking save more than once will register a duplicate subproject ID. If you create an extra ID, you have to delete it from the database manually with an sql command.\n\nDefine all projectID-subprojectID relationships by populating the project_rel table, e.g.\n\nINSERT INTO `project_rel` VALUES (1,1),(1,2),(2,3);', '2016-04-01 00:00:00');
UPDATE Config SET Value = LEFT(Value , LENGTH(Value)-1) WHERE ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='url') AND RIGHT(Value,1) = "/";
UPDATE LorisMenu SET Link = RIGHT(Link, LENGTH(Link)-1) WHERE LEFT(Link,1) = "/";

0 comments on commit 789a9a6

Please # to comment.