From 3b8821b7e6c00a34fe71b22f011841786bb9d7e5 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sat, 24 Apr 2010 19:11:05 -0400 Subject: moved some files and directories inside forum from root --- forum/sql_scripts/update_2009_02_26_001.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 forum/sql_scripts/update_2009_02_26_001.sql (limited to 'forum/sql_scripts/update_2009_02_26_001.sql') diff --git a/forum/sql_scripts/update_2009_02_26_001.sql b/forum/sql_scripts/update_2009_02_26_001.sql new file mode 100644 index 00000000..a6af5931 --- /dev/null +++ b/forum/sql_scripts/update_2009_02_26_001.sql @@ -0,0 +1,19 @@ +ALTER TABLE answer ADD COLUMN `accepted_at` datetime default null; + +/* Update accepted_at column with answer added datetime for existing data */ +UPDATE answer +SET accepted_at = added_at +WHERE accepted = 1 AND accepted_at IS NULL; + +/* workround for c# url problem on bluehost server */ +UPDATE tag +SET name = 'csharp' +WHERE name = 'c#' + +UPDATE question +SET tagnames = replace(tagnames, 'c#', 'csharp') +WHERE tagnames like '%c#%' + +UPDATE question_revision +SET tagnames = replace(tagnames, 'c#', 'csharp') +WHERE tagnames like '%c#%' -- cgit v1.2.3-1-g7c22