X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate22.py;h=dbd7ced6023c1d3bf77b7c225ca1a4e4361d8211;hb=71c48c6fce3e9f48367a19ed87c2400142c6f722;hp=4f95262debd1f72d2dceed90ab63225de828604a;hpb=8fbdf337ce6ccfea3aac3437ce47964d33dc5d9e;p=dak.git diff --git a/dak/dakdb/update22.py b/dak/dakdb/update22.py index 4f95262d..dbd7ced6 100755 --- a/dak/dakdb/update22.py +++ b/dak/dakdb/update22.py @@ -69,7 +69,7 @@ def do_update(self): for q in c.fetchall(): queues[q[0]] = q[1] - if q[1] in ['accepted', 'buildd']: + if q[1] in ['accepted', 'buildd', 'embargoed', 'unembargoed']: # Move to build_queue_table c.execute("""INSERT INTO build_queue (queue_name, path, copy_files) VALUES ('%s', '%s', '%s')""" % (q[1], q[2], q[3])) @@ -98,7 +98,7 @@ def do_update(self): ON DELETE CASCADE""") - c.execute("""ALTER TABLE suite DROP CONSTRAINT suite_policy_queue_fkey""") + c.execute("""ALTER TABLE suite DROP CONSTRAINT suite_policy_queue_id_fkey""") c.execute("""UPDATE suite SET policy_queue_id = (SELECT policy_queue.id FROM policy_queue