Files
ai-video-fullstack/backend/db/sync_interface_definitions.py
Xin Wang 03b532dd09 Implement Alembic for database migrations and update FastAPI initialization
- Integrate Alembic for managing database schema migrations, replacing the previous SQL schema management.
- Update the FastAPI application to synchronize interface definitions at startup.
- Modify the Docker Compose command to run Alembic migrations before starting the API.
- Enhance the Makefile with new commands for database migration and revision management.
- Remove outdated SQL schema and seed files, transitioning to a more dynamic migration approach.
- Add initial migration scripts and configuration for Alembic, ensuring a structured database evolution.
2026-07-09 16:29:10 +08:00

16 lines
271 B
Python

"""CLI entry for syncing built-in interface definitions."""
from __future__ import annotations
import asyncio
from db.session import sync_interface_definitions
def main() -> None:
asyncio.run(sync_interface_definitions())
if __name__ == "__main__":
main()