File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import sys
21import asyncio
32import httpx
43import pytest_asyncio
Original file line number Diff line number Diff line change @@ -59,27 +59,22 @@ def run_migrations_offline() -> None:
5959
6060
6161def do_run_migrations (connection : Connection ) -> None :
62- context .configure (connection = connection , target_metadata = target_metadata )
63-
62+ context .configure (
63+ connection = connection ,
64+ target_metadata = target_metadata ,
65+ compare_type = True ,
66+ )
6467 with context .begin_transaction ():
6568 context .run_migrations ()
6669
6770
68- async def run_async_migrations () -> None :
71+ async def run_async_migrations (connectable ) -> None :
6972 """In this scenario we need to create an Engine
7073 and associate a connection with the context.
7174
7275 """
73-
74- connectable = async_engine_from_config (
75- config .get_section (config .config_ini_section , {}),
76- prefix = "sqlalchemy." ,
77- poolclass = pool .NullPool ,
78- )
79-
8076 async with connectable .connect () as connection :
8177 await connection .run_sync (do_run_migrations )
82-
8378 await connectable .dispose ()
8479
8580
You can’t perform that action at this time.
0 commit comments