# HG changeset patch # User Daniele Nicolodi # Date 1311632809 -7200 # Node ID b9c38c1704bd4986aa2326e37048cfa7a787ddb5 # Parent 80ed4131d0ad060b161df8fbfeb61cdaa78c8b8c Fix 2.6 to 2.7 upgrade step: do not try to change storage for views. diff -r 80ed4131d0ad -r b9c38c1704bd src/ltpdarepo/upgrade.py --- a/src/ltpdarepo/upgrade.py Tue Jul 26 00:24:08 2011 +0200 +++ b/src/ltpdarepo/upgrade.py Tue Jul 26 00:26:49 2011 +0200 @@ -216,6 +216,9 @@ tables = [t[0] for t in curs.fetchall()] conn.autocommit(False) for table in tables: + # "users" is a view and not a table + if table in ('users', ): + continue curs = conn.cursor() curs.execute("ALTER TABLE %s ENGINE = InnoDB" % table) # commit after each table conversion