fix: trace_app_config_app_id_idx

This commit is contained in:
Joe 2024-07-20 01:11:38 +08:00
parent 4aa8c4b261
commit 430657312f

View File

@ -21,7 +21,7 @@ def upgrade():
op.drop_table('tracing_app_configs')
with op.batch_alter_table('trace_app_config', schema=None) as batch_op:
batch_op.drop_index('tracing_app_config_app_id_idx')
batch_op.drop_index('trace_app_config_app_id_idx')
# idx_dataset_permissions_tenant_id
with op.batch_alter_table('dataset_permissions', schema=None) as batch_op:
@ -47,7 +47,7 @@ def downgrade():
)
with op.batch_alter_table('trace_app_config', schema=None) as batch_op:
batch_op.create_index('tracing_app_config_app_id_idx', ['app_id'])
batch_op.create_index('trace_app_config_app_id_idx', ['app_id'])
with op.batch_alter_table('dataset_permissions', schema=None) as batch_op:
batch_op.drop_index('idx_dataset_permissions_tenant_id')