rebase
This commit is contained in:
14
app/migrations/init_db.py
Normal file
14
app/migrations/init_db.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Database initialization utilities — used by alembic env and CLI."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.core.settings_service import seed_default_settings
|
||||
from app.migrations.seed import seed_builtin_presets
|
||||
|
||||
|
||||
async def init_db(session: AsyncSession) -> None:
|
||||
"""Seed settings + builtin presets. Idempotent."""
|
||||
await seed_default_settings(session)
|
||||
await seed_builtin_presets(session)
|
||||
Reference in New Issue
Block a user