Merge "db: rename_table is not a batch operation"

This commit is contained in:
Zuul 2024-04-09 18:49:54 +00:00 committed by Gerrit Code Review
commit 56db40e344
1 changed files with 3 additions and 2 deletions

View File

@ -246,8 +246,9 @@ def upgrade_export_locations_table(connection):
with op.batch_alter_table("share_export_locations") as batch_op:
batch_op.drop_constraint('sel_id_fk', type_='foreignkey')
batch_op.drop_column('share_id')
batch_op.rename_table('share_export_locations',
'share_instance_export_locations')
op.rename_table(
'share_export_locations', 'share_instance_export_locations')
def downgrade_export_locations_table(connection):