f8d3cbdd59
Add the FastAPI app, PostgreSQL migrations, Docker/Helm packaging, API contracts, docs, client examples, and the unit/integration/compatibility test suite for local client and tooling labs without a real vCenter.
17 lines
363 B
Python
17 lines
363 B
Python
"""Apply configured database migrations."""
|
|
|
|
import asyncio
|
|
|
|
from app.config import get_settings
|
|
from app.db.migrations import migrate_url
|
|
|
|
|
|
async def run() -> None:
|
|
settings = get_settings()
|
|
count = await migrate_url(settings.database_url.get_secret_value())
|
|
print(f"applied {count} migration(s)")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(run())
|