diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-11-28 22:04:04 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-11-28 22:04:04 -0500 |
commit | f3ccfd49f437c6080c9233a2e24ec602ebc49f60 (patch) | |
tree | 6e16fc77589074b31e64f547b63ebdf3798c012c /sql_scripts/update_2009_02_26_001.sql | |
parent | 6afaa6d392e97cc425e4ecdc82f3c1a3716986f4 (diff) | |
parent | 18f1a07afed3208ef4424305da8c6b1a34cf3aed (diff) | |
download | askbot-f3ccfd49f437c6080c9233a2e24ec602ebc49f60.tar.gz askbot-f3ccfd49f437c6080c9233a2e24ec602ebc49f60.tar.bz2 askbot-f3ccfd49f437c6080c9233a2e24ec602ebc49f60.zip |
merged with CNPROG branch
Diffstat (limited to 'sql_scripts/update_2009_02_26_001.sql')
-rw-r--r-- | sql_scripts/update_2009_02_26_001.sql | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sql_scripts/update_2009_02_26_001.sql b/sql_scripts/update_2009_02_26_001.sql index 9cc80974..4113d8f5 100644 --- a/sql_scripts/update_2009_02_26_001.sql +++ b/sql_scripts/update_2009_02_26_001.sql @@ -1,19 +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')
+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#%'
\ No newline at end of file |