Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / rt / etc / upgrade / 3.9.5 / schema.mysql
1 alter Table CustomFieldValues ADD Column Category varchar(255);
2
3 UPDATE CustomFieldValues SET Category = (SELECT Content FROM Attributes WHERE
4 Name = 'Category' AND  ObjectType = 'RT::CustomFieldValue'
5 AND CustomFieldValues.id = Attributes.ObjectId);
6
7 DELETE FROM Attributes WHERE Name = 'Category' AND ObjectType = 'RT::CustomFieldValue';
8
9 ALTER TABLE Groups
10     ADD COLUMN Creator integer NOT NULL DEFAULT 0,
11     ADD COLUMN Created DATETIME NULL,
12     ADD COLUMN LastUpdatedBy integer NOT NULL DEFAULT 0,
13     ADD COLUMN LastUpdated DATETIME NULL;
14 ALTER TABLE GroupMembers
15     ADD COLUMN Creator integer NOT NULL DEFAULT 0,
16     ADD COLUMN Created DATETIME NULL,
17     ADD COLUMN LastUpdatedBy integer NOT NULL DEFAULT 0,
18     ADD COLUMN LastUpdated DATETIME NULL;
19 ALTER TABLE ACL
20     ADD COLUMN Creator integer NOT NULL DEFAULT 0,
21     ADD COLUMN Created DATETIME NULL,
22     ADD COLUMN LastUpdatedBy integer NOT NULL DEFAULT 0,
23     ADD COLUMN LastUpdated DATETIME NULL;