mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
added upload comments/history, still need to finish the actual db calls
This commit is contained in:
parent
cb820450f8
commit
63fe7babb2
4 changed files with 162 additions and 20 deletions
|
@ -174,3 +174,16 @@ CREATE TABLE PackageContents (
|
|||
FOREIGN KEY (PackageID) REFERENCES Packages(ID) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
-- Record comments for users submitting packages to AUR/unsupported
|
||||
--
|
||||
CREATE TABLE PackageUploadHistory (
|
||||
PackageID INTEGER UNSIGNED NOT NULL,
|
||||
UsersID INTEGER UNSIGNED NOT NULL,
|
||||
Comments TEXT NOT NULl DEFAULT '',
|
||||
UploadTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||
INDEX (UsersID),
|
||||
INDEX (PackageID),
|
||||
FOREIGN KEY (UsersID) REFERENCES Users(ID) ON DELETE CASCADE,
|
||||
FOREIGN KEY (PackageID) REFERENCES Packages(ID) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue