mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Create two new actions, do_AddComment and do_EditComment. When editing or deleting a comment, a timestamp is added. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
9 lines
328 B
Text
9 lines
328 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;
|
|
----
|