Merge "[alembic] Alembic operations require keywords only arguments"

This commit is contained in:
Zuul 2023-05-19 09:18:53 +00:00 committed by Gerrit Code Review
commit a517cb0e65
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ def recreate_index(index, table_name):
old_name = index['name']
new_name = old_name.replace('tenant', 'project')
op.drop_index(op.f(old_name), table_name)
op.drop_index(index_name=op.f(old_name), table_name=table_name)
op.create_index(new_name, table_name, ['project_id'])

View File

@ -99,7 +99,7 @@ def recreate_index(table):
for idx in (idx for idx in indexes if idx['name'] == index_name):
old_name = idx['name']
new_name = old_name.replace('target_tenant', 'target_project')
op.drop_index(op.f(old_name), table)
op.drop_index(index_name=op.f(old_name), table_name=table)
op.create_index(new_name, table, ['target_project'])