Require comments when flagging packages out-of-date

Implements FS#42827.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-08-31 18:29:06 +02:00
parent 6b7e26a2d1
commit 396e50bdc8
6 changed files with 27 additions and 12 deletions

View file

@ -8,10 +8,11 @@ ALTER TABLE PackageComments
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:
2. Add fields to store the ID and comment of the last user who flagged a
package out-of-date:
----
ALTER TABLE PackageBases
ADD COLUMN FlaggerUID BIGINT UNSIGNED NULL DEFAULT NULL;
ADD COLUMN FlaggerUID BIGINT UNSIGNED NULL DEFAULT NULL,
ADD COLUMN FlaggerComment VARCHAR(255) NOT NULL;
----