Updated database manually

This commit is contained in:
2023-03-11 17:50:45 +00:00
parent 7664c32a96
commit 942f317e79
2 changed files with 5 additions and 9 deletions

View File

@@ -76,12 +76,8 @@ async def run_migrations_online() -> None:
async with connectable.connect() as connection:
await connection.run_sync(do_run_migrations)
def main() -> None:
if context.is_offline_mode():
asyncio.run(run_migrations_offline())
else:
asyncio.run(run_migrations_online())
if __name__ == '__main__':
main()
if context.is_offline_mode():
asyncio.run(run_migrations_offline())
else:
asyncio.run(run_migrations_online())

View File

@@ -24,7 +24,7 @@ async def on_startup():
await init_db()
# run migrations
await run_migrations()
# await run_migrations()