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