Skip to content

Move Prisma datasource choice to env-driven PG / SQLite switch #251

Description

@kilodesodiq-arch

Problem Statement. prisma/schema.prisma hard-codes provider = "sqlite". Switching
to Postgres production requires manual edits.

Why it matters. Test environment may use SQLite for speed; production must use PG.
A single env-driven switch is safe.

Technical Context. prisma/schema.prisma::datasource.

Expected Outcome. Schema uses provider = env("DATABASE_PROVIDER") and a url/shadowUrl
pattern documented in docs/db/providers.md.

Acceptance Criteria.

  • New DATABASE_PROVIDER env var accepts sqlite|postgresql.
  • Migration step validated against both providers in CI matrix.

Files or modules likely to be affected.
prisma/schema.prisma,
new docs/db/providers.md.

Difficulty. Medium
Estimated effort. S



Backlog item #43 from `docs/maintainer-issue-backlog.md.

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions