From: Torsten Werner Date: Mon, 2 Nov 2009 21:25:05 +0000 (+0100) Subject: commit changes to database X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=20dded05d7fae3bf52500a1543aa561dec2d62b6;p=dak.git commit changes to database Signed-off-by: Torsten Werner --- diff --git a/dak/dakdb/update23.py b/dak/dakdb/update23.py index 70f2fc4c..2201a4ce 100644 --- 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))