summaryrefslogtreecommitdiffstats
path: root/sql_scripts/update_2009_02_26_001.sql
blob: a6af5931dfa1bdeb641a837a76bfd25618da3442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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#%'