mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
17 lines
506 B
Text
17 lines
506 B
Text
1. Add a timestamp for comment editing/deletion and an ID of the last user
|
|
who edited a comment:
|
|
|
|
----
|
|
ALTER TABLE PackageComments
|
|
ADD COLUMN EditedTS BIGINT UNSIGNED NULL DEFAULT NULL,
|
|
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;
|
|
----
|