]> git.decadent.org.uk Git - dak.git/blobdiff - setup/init_pool.sql
revert all my stupid commits, we'll try this again later when we have a test server
[dak.git] / setup / init_pool.sql
index 0ab91ad637213fa8c1d937f993e01627e23adb41..7a6e2a490b82f46b809f556e6b08414be02b844b 100644 (file)
@@ -78,12 +78,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,