Skip to content

Commit 32f191c

Browse files
committed
[alembic] Alembic operations require keywords only arguments
Since [1] (release 1.11.0), the Alembic operations "now enforce keyword-only arguments as passed as keyword and not positionally" (from the commit message). This change is compatible with the previous versions (as confirmed in the CI). [1]zzzeek/alembic@df75e85 Closes-Bug: #2019948 Change-Id: I020585a192ec5bcfb92cf92ef235da379ccb985e
1 parent 02a63e0 commit 32f191c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nova/db/main/migrations/versions/16f1fbcab42b_resolve_shadow_table_diffs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ def upgrade():
4444
# 252_add_instance_extra_table; we shouldn't have created an index for the
4545
# shadow table
4646

47-
op.drop_index('shadow_instance_extra_idx', 'shadow_instance_extra')
47+
op.drop_index(index_name='shadow_instance_extra_idx',
48+
table_name='shadow_instance_extra')
4849

4950
# 373_migration_uuid; we shouldn't have created an index for the shadow
5051
# table
5152

52-
op.drop_index('shadow_migrations_uuid', 'shadow_migrations')
53+
op.drop_index(index_name='shadow_migrations_uuid',
54+
table_name='shadow_migrations')
5355

5456
# 298_mysql_extra_specs_binary_collation; we changed the collation on the
5557
# main table but not the shadow table

0 commit comments

Comments
 (0)