diff --git a/account_direct_debit/migrations/7.0.2/pre-migration.py b/account_direct_debit/migrations/7.0.2/pre-migration.py index 49c0db52f..b57543527 100644 --- a/account_direct_debit/migrations/7.0.2/pre-migration.py +++ b/account_direct_debit/migrations/7.0.2/pre-migration.py @@ -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))