fixing migrations

This commit is contained in:
2025-12-23 20:09:47 -06:00
parent 9a0b7c7920
commit 7667d80d2f
3 changed files with 68 additions and 2 deletions

View File

@@ -69,8 +69,12 @@ def run_migrations_online() -> None:
)
with connectable.connect() as connection:
# Enable batch mode for SQLite to support ALTER TABLE operations
# like DROP COLUMN which SQLite doesn't natively support
context.configure(
connection=connection, target_metadata=target_metadata
connection=connection,
target_metadata=target_metadata,
render_as_batch=True
)
with context.begin_transaction():