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