From: Ryan Murray Date: Mon, 21 Nov 2005 07:43:00 +0000 (+0000) Subject: Update maintainer_id_seq, too. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0dc83d4105b4fc3dbdb58eb46868c6e2005e2fb4;p=dak.git Update maintainer_id_seq, too. --- diff --git a/add_constraints.sql b/add_constraints.sql index 65625eb6..9b7eb766 100644 --- a/add_constraints.sql +++ b/add_constraints.sql @@ -63,6 +63,9 @@ CREATE FUNCTION priority_id_max() RETURNS INT4 CREATE FUNCTION override_type_id_max() RETURNS INT4 AS 'SELECT max(id) FROM override_type' LANGUAGE 'sql'; +CREATE FUNCTION maintainer_id_max() RETURNS INT4 + AS 'SELECT max(id) FROM maintainer' + LANGUAGE 'sql'; SELECT setval('files_id_seq', files_id_max()); SELECT setval('source_id_seq', source_id_max()); @@ -73,6 +76,7 @@ SELECT setval('bin_associations_id_seq', bin_associations_id_max()); SELECT setval('section_id_seq', section_id_max()); SELECT setval('priority_id_seq', priority_id_max()); SELECT setval('override_type_id_seq', override_type_id_max()); +SELECT setval('maintainer_id_seq', maintainer_id_max()); -- Vacuum the tables for efficency