]> git.decadent.org.uk Git - dak.git/commitdiff
Fix indentation on commit to be outside for loop but inside try. Add update to db_rev...
authorBarry deFreese <bdefreese@ries.debian.org>
Mon, 23 Nov 2009 20:25:31 +0000 (20:25 +0000)
committerBarry deFreese <bdefreese@ries.debian.org>
Mon, 23 Nov 2009 20:25:31 +0000 (20:25 +0000)
dak/dakdb/update26.py

index 70ad62b860362c3c2810b3348dcf5b800618081e..3c7b0825f3bb77b8d7e789220966a8133a62e590 100755 (executable)
@@ -57,8 +57,9 @@ def do_update(self):
             c.execute("""CREATE TRIGGER modified_%s BEFORE UPDATE ON %s 
             FOR EACH ROW EXECUTE PROCEDURE tfunc_set_modified()""" % (updatetable, updatetable))
        
-    print "Committing"
-    self.db.commit()
+        print "Committing"
+        c.execute("UPDATE config SET value = '26' WHERE name = 'db_revision'")
+        self.db.commit()
 
     except psycopg2.InternalError, msg:
             self.db.rollback()