diff --git a/neutron/db/migration/alembic_migrations/versions/newton/contract/7d9d8eeec6ad_rename_tenant_to_project.py b/neutron/db/migration/alembic_migrations/versions/newton/contract/7d9d8eeec6ad_rename_tenant_to_project.py index c39f60a5499..a2020e6883b 100644 --- a/neutron/db/migration/alembic_migrations/versions/newton/contract/7d9d8eeec6ad_rename_tenant_to_project.py +++ b/neutron/db/migration/alembic_migrations/versions/newton/contract/7d9d8eeec6ad_rename_tenant_to_project.py @@ -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']) diff --git a/neutron/db/migration/alembic_migrations/versions/yoga/expand/1ffef8d6f371_rbac_target_tenant_to_target_project.py b/neutron/db/migration/alembic_migrations/versions/yoga/expand/1ffef8d6f371_rbac_target_tenant_to_target_project.py index acd1da62ac6..9a49b029318 100644 --- a/neutron/db/migration/alembic_migrations/versions/yoga/expand/1ffef8d6f371_rbac_target_tenant_to_target_project.py +++ b/neutron/db/migration/alembic_migrations/versions/yoga/expand/1ffef8d6f371_rbac_target_tenant_to_target_project.py @@ -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'])