summaryrefslogtreecommitdiffstats
path: root/support/schema/aur-schema.sql
diff options
context:
space:
mode:
authoreric <eric>2004-06-29 23:22:31 +0200
committereric <eric>2004-06-29 23:22:31 +0200
commit761ddc3ddcaeb46f48fc746ad2f3cedb97cb1249 (patch)
tree5d762436744fa894308c586dd99457af93209d12 /support/schema/aur-schema.sql
parent6249c40e9417aff0ab8eb6f84c1f6693771c7b81 (diff)
downloadaur-761ddc3ddcaeb46f48fc746ad2f3cedb97cb1249.tar.gz
aur-761ddc3ddcaeb46f48fc746ad2f3cedb97cb1249.tar.xz
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 876cf285..dd023109 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
);