fixing migrations
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user