Support comment editing in the backend

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>
This commit is contained in:
Marcel Korpel 2015-07-10 18:47:32 +02:00 committed by Lukas Fleischer
parent 92e19e95f3
commit e331ce273c
5 changed files with 73 additions and 1 deletions

9
upgrading/4.1.0.txt Normal file
View file

@ -0,0 +1,9 @@
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;
----