Skip to content

Commit

Permalink
if branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Sep 9, 2024
1 parent 2f16169 commit de47a46
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def upgrade() -> None:
batch_op.drop_constraint(
"fk_workflowtaskv2_task_legacy_id_task", type_="foreignkey"
)
batch_op.drop_index("idx_workflowtaskv2_task_legacy_id")
if op.get_bind().dialect.name == "sqlite":
batch_op.drop_index("idx_workflowtaskv2_task_legacy_id")

batch_op.drop_column("task_legacy_id")
batch_op.drop_column("is_legacy_task")
Expand Down

0 comments on commit de47a46

Please sign in to comment.