]> git.decadent.org.uk Git - dak.git/commitdiff
commit changes to database
authorTorsten Werner <twerner@debian.org>
Mon, 2 Nov 2009 21:25:05 +0000 (22:25 +0100)
committerTorsten Werner <twerner@debian.org>
Mon, 2 Nov 2009 21:25:05 +0000 (22:25 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/dakdb/update23.py

index 70f2fc4c779d915d50622cd536e3e066aed85e01..2201a4ce1600f9c391b83ae036378b78a944b224 100644 (file)
@@ -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))