add user migration

This commit is contained in:
Jakub Miazek
2023-07-22 14:24:14 +02:00
parent a865abcdb3
commit 0032f4418a
3 changed files with 42 additions and 1 deletions

View File

@@ -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)