summaryrefslogtreecommitdiff
path: root/rt/etc/upgrade/3.9.5/schema.Pg
blob: cea2c44102fb6804f6cd85cc0e7e747a60141fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
alter Table CustomFieldValues ADD Column Category varchar(255);

UPDATE CustomFieldValues SET Category = (SELECT Content FROM Attributes WHERE
Name = 'Category' AND  ObjectType = 'RT::CustomFieldValue'
AND CustomFieldValues.id = Attributes.ObjectId);

DELETE FROM Attributes WHERE Name = 'Category' AND ObjectType = 'RT::CustomFieldValue';

ALTER TABLE Groups ADD COLUMN Creator integer NOT NULL DEFAULT 0;
ALTER TABLE Groups ADD COLUMN Created TIMESTAMP NULL;
ALTER TABLE Groups ADD COLUMN LastUpdatedBy integer NOT NULL DEFAULT 0;
ALTER TABLE Groups ADD COLUMN LastUpdated TIMESTAMP NULL;
ALTER TABLE GroupMembers ADD COLUMN Creator integer NOT NULL DEFAULT 0;
ALTER TABLE GroupMembers ADD COLUMN Created TIMESTAMP NULL;
ALTER TABLE GroupMembers ADD COLUMN LastUpdatedBy integer NOT NULL DEFAULT 0;
ALTER TABLE GroupMembers ADD COLUMN LastUpdated TIMESTAMP NULL;
ALTER TABLE ACL ADD COLUMN Creator integer NOT NULL DEFAULT 0;
ALTER TABLE ACL ADD COLUMN Created TIMESTAMP NULL;
ALTER TABLE ACL ADD COLUMN LastUpdatedBy integer NOT NULL DEFAULT 0;
ALTER TABLE ACL ADD COLUMN LastUpdated TIMESTAMP NULL;