pdf-quiz-generator/backend/alembic
Daniel 0f3a267fb6 Wire Alembic to live Postgres and fix startup DDL race
- alembic.ini: remove hardcoded sqlite URL
- alembic/env.py: inject DATABASE_URL from container env
- main.py: serialize Base.metadata.create_all() + setup_pgvector() behind
  a Postgres advisory lock (_run_startup_ddl). Previously all 4 uvicorn
  workers ran the DDL in parallel and occasionally deadlocked each other
  on ALTER TABLE ordering, killing one worker at startup.
- CLAUDE.md: add Database migrations (Alembic) section

DB was stamped at 9bac7bf02e38; no schema changes in this commit.
2026-04-14 04:49:23 +02:00
..
versions Persist reminders_disabled in Postgres and harden reminder scheduler 2026-04-14 04:31:03 +02:00
env.py Wire Alembic to live Postgres and fix startup DDL race 2026-04-14 04:49:23 +02:00
README Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00
script.py.mako Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00

Generic single-database configuration.