🔧 chore(adds_tables.py): add comment explaining the reason for dropping '_alembic_tmp_flow' table before creating indices
This commit is contained in:
parent
49d6054517
commit
58317a3891
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ def upgrade() -> None:
|
|||
)
|
||||
# Conditionally create indices for 'flow' table
|
||||
# if _alembic_tmp_flow exists, then we need to drop it first
|
||||
# This is to deal with SQLite not being able to ROLLBACK
|
||||
# for some unknown reason
|
||||
if "_alembic_tmp_flow" in existing_tables:
|
||||
op.drop_table("_alembic_tmp_flow")
|
||||
with op.batch_alter_table("flow", schema=None) as batch_op:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue