mirror of
https://github.com/koloideal/Quizzi.git
synced 2026-06-10 10:25:28 +03:00
update
This commit is contained in:
+4
-5
@@ -59,11 +59,10 @@ def do_run_migrations(connection: Connection):
|
||||
|
||||
|
||||
async def run_async_migrations() -> None:
|
||||
"""In this scenario we need to create an Engine
|
||||
and associate a connection with the context.
|
||||
|
||||
"""
|
||||
connectable = create_async_engine(db_config.url)
|
||||
connectable = create_async_engine(
|
||||
db_config.url,
|
||||
connect_args={"server_settings": {"timezone": "UTC"}},
|
||||
)
|
||||
|
||||
async with connectable.connect() as connection:
|
||||
await connection.run_sync(do_run_migrations)
|
||||
|
||||
Reference in New Issue
Block a user