feat(database): use alembic

This commit is contained in:
MingxuanGame
2025-07-28 13:09:55 +00:00
parent 80310d450b
commit 9b889bc602
18 changed files with 329 additions and 10 deletions

View File

@@ -10,9 +10,6 @@ from app.router import api_router, auth_router, fetcher_router, signalr_router
from fastapi import FastAPI
# 注意: 表结构现在通过 migrations 管理,不再自动创建
# 如需创建表,请运行: python quick_sync.py
@asynccontextmanager
async def lifespan(app: FastAPI):