Commit 925672efb1c6a0f4313fbebd9de43b390db44871
1 parent
6ff10a4f
Merged in from DEV trunk...
KTS-2790 "CLONE -Backslashes appear before every quote and double quote throughout our version of knowledgetree(SUP-532)" Fixed. Added an upgrade script to remove the backslashes. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.4.6-Release-Branch@7910 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
19 additions
and
1 deletions
sql/mysql/install/data.sql
| ... | ... | @@ -983,6 +983,9 @@ INSERT INTO `upgrades` VALUES (135, 'sql*3.4.0*0*3.4.0/upload_download.sql', 'Up |
| 983 | 983 | INSERT INTO `upgrades` VALUES (136, 'upgrade*3.4.0*99*upgrade3.4.0', 'Upgrade from version 3.3.2 to 3.4.0', '2007-04-17 00:00:00', 1, 'upgrade*3.4.0*99*upgrade3.4.0'); |
| 984 | 984 | INSERT INTO `upgrades` VALUES (137, 'sql*3.4.5*0*3.4.5/plugin_helper.sql', 'Create the plugin helper table.', '2007-11-20 00:00:00', 1, 'upgrade*3.4.5*99*upgrade3.4.5'); |
| 985 | 985 | INSERT INTO `upgrades` VALUES (138, 'upgrade*3.4.5*99*upgrade3.4.5', 'Upgrade from version 3.4.0 to 3.4.5', '2007-11-20 00:00:00', 1, 'upgrade*3.4.5*99*upgrade3.4.5'); |
| 986 | +INSERT INTO `upgrades` VALUES (139,'sql*3.4.6*0*3.4.6/remove_backslashes.sql','Remove backslashes.','2007-11-20 00:00:00',1,'upgrade*3.4.6*99*upgrade3.4.6'); | |
| 987 | +INSERT INTO `upgrades` VALUES (140,'upgrade*3.4.6*99*upgrade3.4.6','Upgrade from version 3.4.5 to 3.4.6','2007-11-20 00:00:00',1,'upgrade*3.4.6*99*upgrade3.4.6'); | |
| 988 | + | |
| 986 | 989 | |
| 987 | 990 | -- |
| 988 | 991 | -- Dumping data for table `user_history` |
| ... | ... | @@ -1457,7 +1460,7 @@ INSERT INTO `zseq_units_organisations_link` VALUES (1); |
| 1457 | 1460 | -- Dumping data for table `zseq_upgrades` |
| 1458 | 1461 | -- |
| 1459 | 1462 | |
| 1460 | -INSERT INTO `zseq_upgrades` VALUES (138); | |
| 1463 | +INSERT INTO `zseq_upgrades` VALUES (140); | |
| 1461 | 1464 | |
| 1462 | 1465 | -- |
| 1463 | 1466 | -- Dumping data for table `zseq_user_history` | ... | ... |
sql/mysql/upgrade/3.4.6/remove_backslashes.sql
0 → 100644
| 1 | +/* Script to remove back slashes from ' and " and \ | |
| 2 | + * From the welcome dashlet, folder names and document titles. | |
| 3 | + */ | |
| 4 | + | |
| 5 | +UPDATE help_replacement | |
| 6 | +SET description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), | |
| 7 | + title = replace(replace(replace(title, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); | |
| 8 | + | |
| 9 | +UPDATE document_metadata_version | |
| 10 | +SET name = replace(replace(replace(name, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), | |
| 11 | + description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); | |
| 12 | + | |
| 13 | +UPDATE folders | |
| 14 | +SET name = replace(replace(replace(name, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), | |
| 15 | + description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); | |
| 0 | 16 | \ No newline at end of file | ... | ... |