Skip to content

Commit

Permalink
feat: revert redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Sep 25, 2024
1 parent 4247ee1 commit c9d8262
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keep/api/models/db/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def run_migrations_offline() -> None:
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
render_as_batch=True,
)

with context.begin_transaction():
Expand All @@ -67,7 +68,9 @@ def do_run_migrations(connection: Connection) -> None:
:param connection: connection to the database.
"""
context.configure(connection=connection, target_metadata=target_metadata)
context.configure(
connection=connection, target_metadata=target_metadata, render_as_batch=True
)

with context.begin_transaction():
context.run_migrations()
Expand Down

0 comments on commit c9d8262

Please sign in to comment.