From: Anthony Towns Date: Mon, 14 Jan 2008 04:08:54 +0000 (+0000) Subject: add src_uploaders creation and permissions to setup X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef8dcbe8251167f9c922959a67f626615b421c81;p=dak add src_uploaders creation and permissions to setup --- diff --git a/setup/add_constraints.sql b/setup/add_constraints.sql index fcc66582..8d275502 100644 --- a/setup/add_constraints.sql +++ b/setup/add_constraints.sql @@ -108,7 +108,8 @@ GRANT ALL ON architecture, architecture_id_seq, archive, location, location_id_seq, maintainer, maintainer_id_seq, override, override_type, override_type_id_seq, priority, priority_id_seq, section, section_id_seq, source, - source_id_seq, src_associations, src_associations_id_seq, suite, + source_id_seq, src_uploaders, src_uploaders_id_seq, + src_associations, src_associations_id_seq, suite, suite_architectures, suite_id_seq, queue_build, uid, uid_id_seq TO GROUP ftpmaster; @@ -121,6 +122,7 @@ GRANT SELECT ON architecture, architecture_id_seq, archive, location, location_id_seq, maintainer, maintainer_id_seq, override, override_type, override_type_id_seq, priority, priority_id_seq, section, section_id_seq, source, - source_id_seq, src_associations, src_associations_id_seq, suite, + source_id_seq, src_uploaders, src_uploaders_id_seq, + src_associations, src_associations_id_seq, suite, suite_architectures, suite_id_seq, queue_build, uid, uid_id_seq TO PUBLIC; diff --git a/setup/init_pool.sql b/setup/init_pool.sql index e09cc986..8797acd5 100644 --- a/setup/init_pool.sql +++ b/setup/init_pool.sql @@ -28,6 +28,12 @@ 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,