fix: update tortoise-orm dependency to version 1.0.0

This commit is contained in:
shiyu
2026-02-09 17:23:54 +08:00
parent c473251926
commit f8f85bddfb
3 changed files with 240 additions and 231 deletions

View File

@@ -13,7 +13,7 @@ TORTOISE_ORM = {
}
async def init_db():
await Tortoise.init(config=TORTOISE_ORM)
await Tortoise.init(config=TORTOISE_ORM, _enable_global_fallback=True)
await Tortoise.generate_schemas()
await runtime_registry.refresh()