Repository navigation
docs(prisma): pin Prisma ORM 7 and add a PostgreSQL section - #915
Conversation
bun add prisma now installs a Prisma ORM 8 pre-release, which has a different CLI and no generator support, so the existing SQLite steps fail on a fresh install. Pin prisma and @prisma/client to version 7 and add a section that switches the datasource to PostgreSQL with @prisma/adapter-pg, with a tip for creating a Prisma Postgres database.
|
No actionable comments were generated in the recent review. WalkthroughThe Prisma integration guide now pins ChangesPrisma integration documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk:
|
|
@SaltyAom would you mind taking a look? Small change, tested end to end on Bun 1.4.3. Happy to adjust anything. |
|
@SaltyAom gentle follow-up on this one. It only pins the Prisma packages to 7 (unpinned |
Two changes to
docs/integrations/prisma.md:Pin Prisma ORM 7.
bun add -d prismanow installs a Prisma ORM 8 pre-release, which has a different CLI and no generator support, so the Prismabox setup on this page fails on a fresh install (prisma migrateandprisma generatedo not exist in that CLI). The install command now pinsprisma@7and@prisma/client@7, with a short tip explaining why.Add a "Using PostgreSQL" section. The page only shows SQLite through
prisma-adapter-bun-sqlite. The new section swaps in@prisma/adapter-pgand thepostgresqlprovider, keeps the rest of the setup identical, and includes a tip for creating a Prisma Postgres database withbunx create-db@latestwhen the reader does not have a PostgreSQL server at hand.Tested on a fresh
bun create elysiaapp (Bun 1.4.3, Prisma 7.10.1, prismabox 1.1.26): the pinned install, the schema with theprismaboxgenerator,migrate dev,generate, and thesrc/index.tsfrom the page against a Prisma Postgres database.PUT /creates a user,GET /id/:idreturns it, and an unknown id returns 404.bunx prettier --checkpasses with the repo config.Disclosure: I work at Prisma.
Summary by CodeRabbit
latesttag points to a version 8 pre-release.