Updated database manually
This commit is contained in:
@@ -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())
|
||||
@@ -24,7 +24,7 @@ async def on_startup():
|
||||
await init_db()
|
||||
|
||||
# run migrations
|
||||
await run_migrations()
|
||||
# await run_migrations()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user