feat(db): optional PostgreSQL deployment #12

Open
opened 2026-10-22 17:55:35 +00:00 by dsh · 0 comments
Member

Scope

SQLite is the right default for now. Document and test the switch to PostgreSQL when traffic/write patterns justify it.

Needs

  • Add the Postgres driver dependency.
  • Compose service for Postgres + healthcheck.
  • Migration strategy from SQLite content (export/import).
  • Verify migrations, timestamps (UTC), unique constraints and admin flows on Postgres.
  • Update README/AGENTS/CI.

Acceptance

A disposable Postgres database can be created, migrated, seeded and served by the app without code changes beyond DATABASE_URL and the driver.

Moved from pvlb-infra/vps-setup#27 (created in the wrong repo by the issue tool's default).

## Scope SQLite is the right default for now. Document and test the switch to PostgreSQL when traffic/write patterns justify it. ## Needs - Add the Postgres driver dependency. - Compose service for Postgres + healthcheck. - Migration strategy from SQLite content (export/import). - Verify migrations, timestamps (UTC), unique constraints and admin flows on Postgres. - Update README/AGENTS/CI. ## Acceptance A disposable Postgres database can be created, migrated, seeded and served by the app without code changes beyond `DATABASE_URL` and the driver. <sub>Moved from pvlb-infra/vps-setup#27 (created in the wrong repo by the issue tool's default).</sub>
Sign in to join this conversation.
No description provided.