X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate23.py;h=48abf0162df781d6caa47518d5dc6bfa9ae749f2;hb=5092f26ebf1d8ce76088ed442c2b0a9a1dadf095;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..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))