summaryrefslogtreecommitdiff
path: root/support/schema/aur-schema.sql
diff options
context:
space:
mode:
authoreric <eric>2004-06-29 21:22:31 +0000
committereric <eric>2004-06-29 21:22:31 +0000
commit761ddc3ddcaeb46f48fc746ad2f3cedb97cb1249 (patch)
tree5d762436744fa894308c586dd99457af93209d12 /support/schema/aur-schema.sql
parent6249c40e9417aff0ab8eb6f84c1f6693771c7b81 (diff)
yet another schema change
Diffstat (limited to 'support/schema/aur-schema.sql')
-rw-r--r--support/schema/aur-schema.sql9
1 files changed, 6 insertions, 3 deletions
diff --git a/support/schema/aur-schema.sql b/support/schema/aur-schema.sql
index 876cf28..dd02310 100644
--- a/support/schema/aur-schema.sql
+++ b/support/schema/aur-schema.sql
@@ -113,8 +113,9 @@ CREATE TABLE Packages (
NumVotes INTEGER UNSIGNED NOT NULL DEFAULT 0,
OutOfDate TINYINT UNSIGNED DEFAULT 0,
SubmittedTS BIGINT UNSIGNED NOT NULL,
- SubmitterUID INTEGER UNSIGNED NOT NULL DEFAULT 0,
- MaintainerUID INTEGER UNSIGNED NOT NULL DEFAULT 0,
+ SubmitterUID INTEGER UNSIGNED NOT NULL DEFAULT 0, -- who submitted it?
+ MaintainerUID INTEGER UNSIGNED NOT NULL DEFAULT 0, -- User
+ AURMaintainerUID INTEGER UNSIGNED NOT NULL DEFAULT 0, -- TU/Dev
PRIMARY KEY (ID),
UNIQUE (Name),
INDEX (CategoryID),
@@ -123,10 +124,12 @@ CREATE TABLE Packages (
INDEX (NumVotes),
INDEX (SubmitterUID),
INDEX (MaintainerUID),
+ INDEX (AURMaintainerUID),
FOREIGN KEY (CategoryID) REFERENCES PackageCategories(ID) ON DELETE NO ACTION,
FOREIGN KEY (LocationID) REFERENCES PackageLocations(ID) ON DELETE NO ACTION,
FOREIGN KEY (SubmitterUID) REFERENCES Users(ID) ON DELETE NO ACTION,
- FOREIGN KEY (MaintainerUID) REFERENCES Users(ID) ON DELETE NO ACTION
+ FOREIGN KEY (MaintainerUID) REFERENCES Users(ID) ON DELETE NO ACTION,
+ FOREIGN KEY (AURMaintainerUID) REFERENCES Users(ID) ON DELETE NO ACTION
);