From: Mark Hymers Date: Fri, 30 Oct 2009 14:00:01 +0000 (+0000) Subject: never change things at the last minute... X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=65780e8988b7bf392815693e1f6bad3b4ea73cef;p=dak.git never change things at the last minute... Signed-off-by: Mark Hymers --- diff --git a/dak/dakdb/update20.py b/dak/dakdb/update20.py index 27df549b..f4e34cb9 100755 --- a/dak/dakdb/update20.py +++ b/dak/dakdb/update20.py @@ -84,11 +84,11 @@ def do_update(self): c.execute("ALTER TABLE suite ADD COLUMN policy_queue_id INT4 REFERENCES queue(id) DEFAULT NULL") # Handle some of our common cases automatically if seenqueues.has_key('proposedupdates'): - c.execute("""UPDATE suite SET policy_queue = (SELECT id FROM queue WHERE queue_name = 'proposedupdates') + c.execute("""UPDATE suite SET policy_queue_id = (SELECT id FROM queue WHERE queue_name = 'proposedupdates') WHERE suite_name = 'proposed-updates'""") if seenqueues.has_key('oldproposedupdates'): - c.execute("""UPDATE suite SET policy_queue = (SELECT id FROM queue WHERE queue_name = 'oldproposedupdates') + c.execute("""UPDATE suite SET policy_queue_id = (SELECT id FROM queue WHERE queue_name = 'oldproposedupdates') WHERE suite_name = 'oldstable-proposed-updates'""") print "Committing"