[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] commit changes to database



Signed-off-by: Torsten Werner <twerner@debian.org>
---
 dak/dakdb/update23.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dak/dakdb/update23.py b/dak/dakdb/update23.py
index 70f2fc4..2201a4c 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))
-- 
1.6.3.3


Reply to: