changeset 145:0ea8cef630e2

Fix important schema upgrade bug in 2.6 to 2.7 step.
author Daniele Nicolodi <daniele@grinta.net>
date Fri, 21 Oct 2011 16:09:46 +0200
parents 495fb7bcf45a
children 7c5bd2a8bb3f
files src/ltpdarepo/upgrade.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/upgrade.py	Thu Oct 20 09:30:33 2011 +0200
+++ b/src/ltpdarepo/upgrade.py	Fri Oct 21 16:09:46 2011 +0200
@@ -180,7 +180,8 @@
         else:
             # update version information
             curs.execute("USE `%s`" % current)
-            curs.execute("UPDATE available_dbs SET version=2")
+            curs.execute("""UPDATE available_dbs SET version=2
+                            WHERE db_name=%s""", db)
 
     # switch back to default database
     curs.execute("USE `%s`" % current)