Commit 2263842441c696d34caa7d5dbac9a57a9e8179eb
1 parent
0cc768dd
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/trunk@7898 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
15 additions
and
0 deletions
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 | ... | ... |