X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=setup%2Finit_pool.sql;h=bbb82e7415e60a7f24da35840f133ee235568779;hb=d80d1f9473ed63a08404a23c04a9d8eabedc76a6;hp=9925148cfcd9638d66e025a10d03178c72f20c87;hpb=3bb635cd8b8d524e808d537f469031125dba86fc;p=dak.git diff --git a/setup/init_pool.sql b/setup/init_pool.sql index 9925148c..bbb82e74 100644 --- a/setup/init_pool.sql +++ b/setup/init_pool.sql @@ -28,10 +28,17 @@ CREATE TABLE maintainer ( name TEXT UNIQUE NOT NULL ); +CREATE TABLE src_uploaders ( + id SERIAL PRIMARY KEY, + source INT4 NOT NULL REFERENCES source, + maintainer INT4 NOT NULL REFERENCES maintainer +); + CREATE TABLE uid ( id SERIAL PRIMARY KEY, uid TEXT UNIQUE NOT NULL, name TEXT + debian_maintainer BOOLEAN NOT NULL, ); CREATE TABLE keyrings ( @@ -64,6 +71,8 @@ CREATE TABLE files ( md5sum TEXT NOT NULL, location INT4 NOT NULL, -- REFERENCES location last_used TIMESTAMP, + sha1sum TEXT NOT NULL, + sha256sum TEXT NOT NULL, unique (filename, location) ); @@ -76,6 +85,7 @@ CREATE TABLE source ( file INT4 UNIQUE NOT NULL, -- REFERENCES files install_date TIMESTAMP NOT NULL, sig_fpr INT4 NOT NULL, -- REFERENCES fingerprint + dm-upload-allowed BOOLEAN NOT NULL, unique (source, version) );