]> git.decadent.org.uk Git - dak.git/commitdiff
add src_uploaders creation and permissions to setup
authorAnthony Towns <aj@azure.humbug.org.au>
Mon, 14 Jan 2008 04:08:54 +0000 (04:08 +0000)
committerAnthony Towns <aj@azure.humbug.org.au>
Mon, 14 Jan 2008 04:08:54 +0000 (04:08 +0000)
setup/add_constraints.sql
setup/init_pool.sql

index fcc6658266859d7bfb9829a47ecaf818752de341..8d275502c313cfa9d19fc9e4fd7ff46fd6e71c11 100644 (file)
@@ -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;
index e09cc98636697809fa415ac6e23b5955ba86f38c..8797acd59b33c4c6b88c2ac6f4edbdef1459baa8 100644 (file)
@@ -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,