From 925672efb1c6a0f4313fbebd9de43b390db44871 Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Mon, 14 Jan 2008 10:16:22 +0000 Subject: [PATCH] Merged in from DEV trunk... --- sql/mysql/install/data.sql | 5 ++++- sql/mysql/upgrade/3.4.6/remove_backslashes.sql | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sql/mysql/upgrade/3.4.6/remove_backslashes.sql diff --git a/sql/mysql/install/data.sql b/sql/mysql/install/data.sql index 1a9a43c..534d962 100644 --- a/sql/mysql/install/data.sql +++ b/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 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'); 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'); 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'); +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'); +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'); + -- -- Dumping data for table `user_history` @@ -1457,7 +1460,7 @@ INSERT INTO `zseq_units_organisations_link` VALUES (1); -- Dumping data for table `zseq_upgrades` -- -INSERT INTO `zseq_upgrades` VALUES (138); +INSERT INTO `zseq_upgrades` VALUES (140); -- -- Dumping data for table `zseq_user_history` diff --git a/sql/mysql/upgrade/3.4.6/remove_backslashes.sql b/sql/mysql/upgrade/3.4.6/remove_backslashes.sql new file mode 100644 index 0000000..9b5ed45 --- /dev/null +++ b/sql/mysql/upgrade/3.4.6/remove_backslashes.sql @@ -0,0 +1,15 @@ +/* Script to remove back slashes from ' and " and \ + * From the welcome dashlet, folder names and document titles. + */ + +UPDATE help_replacement +SET description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), + title = replace(replace(replace(title, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); + +UPDATE document_metadata_version +SET name = replace(replace(replace(name, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), + description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); + +UPDATE folders +SET name = replace(replace(replace(name, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), + description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); \ No newline at end of file -- libgit2 0.21.4