mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
add user migration
This commit is contained in:
@@ -31,7 +31,7 @@ async def run_migrations_online():
|
||||
and associate a connection with the context.
|
||||
|
||||
"""
|
||||
connectable = create_async_engine(settings.asyncpg_url, future=True)
|
||||
connectable = create_async_engine(settings.asyncpg_url.unicode_string(), future=True)
|
||||
|
||||
async with connectable.connect() as connection:
|
||||
await connection.run_sync(do_run_migrations)
|
||||
|
||||
Reference in New Issue
Block a user