diff options
author | unknown <mike@.(none)> | 2009-08-12 00:20:14 +0800 |
---|---|---|
committer | unknown <mike@.(none)> | 2009-08-12 00:20:14 +0800 |
commit | 7b559daeac59b56adb7e911dad4e692a7e6fa6c4 (patch) | |
tree | 9b87022a6efd9066553854880d651ab3228bc6e9 /sql_scripts/update_2009_02_26_001.sql | |
parent | b55d90628557be0d06035add1577410a74e3b3aa (diff) | |
download | askbot-7b559daeac59b56adb7e911dad4e692a7e6fa6c4.tar.gz askbot-7b559daeac59b56adb7e911dad4e692a7e6fa6c4.tar.bz2 askbot-7b559daeac59b56adb7e911dad4e692a7e6fa6c4.zip |
remove settings_local.py
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 |