From 20dded05d7fae3bf52500a1543aa561dec2d62b6 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Mon, 2 Nov 2009 22:25:05 +0100 Subject: [PATCH] commit changes to database Signed-off-by: Torsten Werner --- dak/dakdb/update23.py | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.39.5