mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #94 from hbrunn/7.0-fix-migration
[FIX] don't pass column name as sql parameters
This commit is contained in:
@@ -37,7 +37,7 @@ def rename_columns(cr, column_spec):
|
||||
for table in column_spec.keys():
|
||||
for (old, new) in column_spec[table]:
|
||||
logger.info("table %s, column %s: renaming to %s", table, old, new)
|
||||
cr.execute('ALTER TABLE %s RENAME %s TO %s', (table, old, new,))
|
||||
cr.execute('ALTER TABLE %s RENAME %s TO %s' % (table, old, new,))
|
||||
cr.execute('DROP INDEX IF EXISTS "%s_%s_index"' % (table, old))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user