Remember user ID when flagging package bases

Add a new FlaggerUID field to the database and use it to store the user
ID of the account who recently flagged a package out-of-date.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-08-30 16:24:13 +02:00
parent 57250a1641
commit e1a258bd83
3 changed files with 12 additions and 2 deletions

View file

@ -7,3 +7,11 @@ ALTER TABLE PackageComments
ADD COLUMN EditedUsersID INTEGER UNSIGNED NULL DEFAULT NULL,
ADD FOREIGN KEY (EditedUsersID) REFERENCES Users(ID) ON DELETE SET NULL;
----
2. Add a field to store the ID of the last user who flagged a package
out-of-date:
----
ALTER TABLE PackageBases
ADD COLUMN FlaggerUID BIGINT UNSIGNED NULL DEFAULT NULL;
----