]> git.decadent.org.uk Git - dak.git/blobdiff - add_constraints.sql
Add note about mailing list
[dak.git] / add_constraints.sql
index 67ec71b1bae0dfc711d5849c34d1435c584a3814..71453e02a3253d76dfafcea67c36b94cd27bcd53 100644 (file)
@@ -32,6 +32,8 @@ ALTER TABLE override ADD CONSTRAINT override_priority FOREIGN KEY (priority) REF
 ALTER TABLE override ADD CONSTRAINT override_section FOREIGN KEY (section) REFERENCES section(id) MATCH FULL;
 ALTER TABLE override ADD CONSTRAINT override_type FOREIGN KEY (type) REFERENCES override_type(id) MATCH FULL;
 
+ALTER TABLE accepted_autobuild ADD CONSTRAINT accepted_autobuild_suite FOREIGN KEY (suite) REFERENCES suite(id) MATCH FULL;
+
 -- Then correct all the id SERIAL PRIMARY KEY columns...
 
 CREATE FUNCTION files_id_max() RETURNS INT4
@@ -101,7 +103,7 @@ GRANT ALL ON architecture, architecture_id_seq, archive,
   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,
-  suite_architectures, suite_id_seq, unstable_accepted TO GROUP ftpmaster;
+  suite_architectures, suite_id_seq, accepted_autobuild TO GROUP ftpmaster;
 
 -- Read only access to user 'nobody'
 GRANT SELECT ON architecture, architecture_id_seq, archive,
@@ -112,4 +114,4 @@ GRANT SELECT ON architecture, architecture_id_seq, archive,
   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,
-  suite_architectures, suite_id_seq, unstable_accepted TO PUBLIC;
+  suite_architectures, suite_id_seq, accepted_autobuild TO PUBLIC;