Description
Currently CAIMS requires PostgreSQL via Docker. Adding SQLite support would make local development much easier for contributors.
What to do
- Add a SQLite provider option in
prisma/schema.prisma
-
- Create a migration script for SQLite
-
- Add
CAIMS_DB_PROVIDER env variable to switch between PostgreSQL and SQLite
-
- Update
lib/db/client.ts to handle both providers
-
- Document the SQLite setup in README
Skills needed
References
- Current schema:
apps/web/prisma/schema.prisma
-
Description
Currently CAIMS requires PostgreSQL via Docker. Adding SQLite support would make local development much easier for contributors.
What to do
prisma/schema.prismaCAIMS_DB_PROVIDERenv variable to switch between PostgreSQL and SQLitelib/db/client.tsto handle both providersSkills needed
References
apps/web/prisma/schema.prisma