chore: clean legacy setup artifacts

This commit is contained in:
Cheng Zhou
2026-05-25 14:35:24 +08:00
parent 934d114a29
commit 6c2f61eebd
11 changed files with 48 additions and 11 deletions
-3
View File
@@ -40,9 +40,6 @@ async def lifespan(_: FastAPI):
aggregator_task = asyncio.create_task(run_hourly_metric_aggregation(stop_event))
await start_log_writer()
await start_security_log_writer()
# Ensure models are imported so metadata is populated
from app.models import user as user_model # noqa: F401
if settings.ENV == "development":
async with engine.begin() as conn:
await _ensure_legacy_primary_keys(conn)