# HG changeset patch # User Daniele Nicolodi # Date 1319206186 -7200 # Node ID 0ea8cef630e274435813660d6581a0e6f08bd7b1 # Parent 495fb7bcf45a23615b984d3671d3ce16fb8ccdb8 Fix important schema upgrade bug in 2.6 to 2.7 step. diff -r 495fb7bcf45a -r 0ea8cef630e2 src/ltpdarepo/upgrade.py --- 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)