X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate20.py;h=27df549b84911740112cc41cae8a7e6d0287ae91;hb=05ccbff4dd425a4e5db02fbb79cb19faf573640e;hp=61497c21faa5265171a080fd54965d88f80ebe73;hpb=773b13f6248c740676ef5326c88dfa319ca53b83;p=dak.git diff --git a/dak/dakdb/update20.py b/dak/dakdb/update20.py index 61497c21..27df549b 100755 --- a/dak/dakdb/update20.py +++ b/dak/dakdb/update20.py @@ -80,7 +80,8 @@ def do_update(self): c.execute("ALTER TABLE known_changes ADD COLUMN approved_for INT4 REFERENCES queue(id) DEFAULT NULL") print "Adding policy queue column to suite table" - c.execute("ALTER TABLE suite ADD COLUMN policy_queue INT4 REFERENCES queue(id) DEFAULT NULL") + c.execute("ALTER TABLE suite DROP COLUMN policy_engine") + 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')