Commit e66992c5 authored by Vincent Pelletier's avatar Vincent Pelletier

Actually swap trans & ttrans too.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2412 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ad7986b8
......@@ -262,9 +262,10 @@ class NEOCluster(object):
sql_connection = self.__getSuperSQLConnection()
cursor = sql_connection.cursor()
cursor.execute('use %s' % (database, ))
cursor.execute('rename table obj to tmp')
cursor.execute('rename table tobj to obj')
cursor.execute('rename table tmp to tobj')
for table in ('trans', 'obj'):
cursor.execute('rename table %s to tmp' % (table, ))
cursor.execute('rename table t%s to %s' % (table, table))
cursor.execute('rename table tmp to t%s' % (table, ))
sql_connection.commit()
sql_connection.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment