X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate23.py;h=48abf0162df781d6caa47518d5dc6bfa9ae749f2;hb=ad5be7226f952dd48ec4d6283a67ceeaa843f92d;hp=70f2fc4c779d915d50622cd536e3e066aed85e01;hpb=ad18665944e93dfb719674eca7dfc9fa46833d47;p=dak.git diff --git a/dak/dakdb/update23.py b/dak/dakdb/update23.py old mode 100644 new mode 100755 index 70f2fc4c..48abf016 --- a/dak/dakdb/update23.py +++ b/dak/dakdb/update23.py @@ -54,6 +54,10 @@ CREATE VIEW srcfiles_suite_component AS JOIN location ON files.location = location.id; """) + print "Committing" + c.execute("UPDATE config SET value = '23' WHERE name = 'db_revision'") + self.db.commit() + except psycopg2.InternalError, msg: self.db.rollback() raise DBUpdateError, "Database error, rollback issued. Error message : %s" % (str(msg))