]> git.decadent.org.uk Git - dak.git/blobdiff - setup/init_pool.sql
Add changedby column to source table, and fill in information found in the
[dak.git] / setup / init_pool.sql
index 168d981ab1236fb6cabae796a47f75494d9b34e4..887771895bbe67bbcce4e8bbfa7d0ecdda2db836 100644 (file)
@@ -34,10 +34,17 @@ CREATE TABLE uid (
        name TEXT
 );
 
+CREATE TABLE keyrings (
+       id SERIAL PRIMARY KEY,
+       name TEXT
+);
+
+
 CREATE TABLE fingerprint (
        id SERIAL PRIMARY KEY,
        fingerprint TEXT UNIQUE NOT NULL,
-       uid INT4 REFERENCES uid
+       uid INT4 REFERENCES uid,
+       keyring INT4 REFERENCES keyrings
 );
 
 CREATE TABLE location (
@@ -65,12 +72,19 @@ CREATE TABLE source (
         source TEXT NOT NULL,
         version TEXT NOT NULL,
         maintainer INT4 NOT NULL, -- REFERENCES maintainer
+        changedby INT4 NOT NULL, -- REFERENCES maintainer
         file INT4 UNIQUE NOT NULL, -- REFERENCES files
        install_date TIMESTAMP NOT NULL,
        sig_fpr INT4 NOT NULL, -- REFERENCES fingerprint
        unique (source, version)
 );
 
+CREATE TABLE src_uploaders (
+       id SERIAL PRIMARY KEY,
+       source INT4 NOT NULL REFERENCES source,
+       maintainer INT4 NOT NULL REFERENCES maintainer
+);
+
 CREATE TABLE dsc_files (
        id SERIAL PRIMARY KEY,
        source INT4 NOT NULL, -- REFERENCES source,