From 789a9a6484458134a8ed173a19cd55627873a3da Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 30 May 2016 15:16:15 -0400 Subject: [PATCH] Bring release patch in line with schema and patch (#1859) * Bring release patch in line with schema and patch * move removing of slash at the end of release patch * put back extra slashes --- SQL/Release_patches/15.10_To_16.0_upgrade.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SQL/Release_patches/15.10_To_16.0_upgrade.sql b/SQL/Release_patches/15.10_To_16.0_upgrade.sql index e057c8d2f2b..0152ae9aa60 100644 --- a/SQL/Release_patches/15.10_To_16.0_upgrade.sql +++ b/SQL/Release_patches/15.10_To_16.0_upgrade.sql @@ -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'; @@ -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'); \ No newline at end of file +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) = "/"; \ No newline at end of file