Mercurial > hg > ltpdarepo
changeset 44:b9c38c1704bd
Fix 2.6 to 2.7 upgrade step: do not try to change storage for views.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Tue, 26 Jul 2011 00:26:49 +0200 |
parents | 80ed4131d0ad |
children | 683a99c35a12 |
files | src/ltpdarepo/upgrade.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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