Remember user ID when flagging package bases
[aur.git] / upgrading / 4.1.0.txt
blobc0bf5732e2e5bb8d5c9b7a5fc160dedbe744a699
1 1. Add a timestamp for comment editing/deletion and an ID of the last user
2 who edited a comment:
4 ----
5 ALTER TABLE PackageComments
6         ADD COLUMN EditedTS BIGINT UNSIGNED NULL DEFAULT NULL,
7         ADD COLUMN EditedUsersID INTEGER UNSIGNED NULL DEFAULT NULL,
8         ADD FOREIGN KEY (EditedUsersID) REFERENCES Users(ID) ON DELETE SET NULL;
9 ----
11 2. Add a field to store the ID of the last user who flagged a package
12 out-of-date:
14 ----
15 ALTER TABLE PackageBases
16         ADD COLUMN FlaggerUID BIGINT UNSIGNED NULL DEFAULT NULL;
17 ----