Skip to content

Commit

Permalink
fix: use asyncio.run (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Sep 29, 2023
1 parent d2410a6 commit efc4561
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions advanced_alchemy/alembic/templates/asyncio/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,4 @@ async def run_migrations_online() -> None:
if context.is_offline_mode():
run_migrations_offline()
else:
loop = asyncio.get_event_loop()
asyncio.run_coroutine_threadsafe(run_migrations_online(), loop=loop)
asyncio.run(run_migrations_online())

0 comments on commit efc4561

Please sign in to comment.