feat: persist probe quality and notification outbox
This commit is contained in:
@@ -22,7 +22,12 @@ async def get_db() -> AsyncGenerator[AsyncSession, None]:
|
||||
|
||||
|
||||
async def init_db():
|
||||
"""创建所有表"""
|
||||
from app.models.device import Base
|
||||
"""Apply non-destructive schema upgrades before creating missing tables."""
|
||||
from app.models import Base
|
||||
from migrations.versions.20260803_reliability_monitoring import (
|
||||
run_reliability_migration,
|
||||
)
|
||||
|
||||
async with engine.begin() as conn:
|
||||
await conn.run_sync(run_reliability_migration)
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
Reference in New Issue
Block a user