Skip to content

docs(prisma): pin Prisma ORM 7 and add a PostgreSQL section - #915

Merged
SaltyAom merged 1 commit into
elysiajs:mainfrom
ankur-arch:docs/prisma-postgres
Nov 11, 2026
Merged

SaltyAom merged 1 commit into
elysiajs:mainfrom
ankur-arch:docs/prisma-postgres

Conversation

@ankur-arch

@ankur-arch ankur-arch commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Two changes to docs/integrations/prisma.md:

Pin Prisma ORM 7. bun add -d prisma now 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 migrate and prisma generate do not exist in that CLI). The install command now pins prisma@7 and @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-pg and the postgresql provider, keeps the rest of the setup identical, and includes a tip for creating a Prisma Postgres database with bunx create-db@latest when the reader does not have a PostgreSQL server at hand.

Tested on a fresh bun create elysia app (Bun 1.4.3, Prisma 7.10.1, prismabox 1.1.26): the pinned install, the schema with the prismabox generator, migrate dev, generate, and the src/index.ts from the page against a Prisma Postgres database. PUT / creates a user, GET /id/:id returns it, and an unknown id returns 404. bunx prettier --check passes with the repo config.

Disclosure: I work at Prisma.

Summary by CodeRabbit

  • Documentation
    • Updated Prisma installation guidance to recommend version 7 and note that the latest tag points to a version 8 pre-release.
    • Added a PostgreSQL setup guide covering adapter installation, database configuration, client setup, and the steps to prepare and run the application.

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.
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The Prisma integration guide now pins prisma and @prisma/client to version 7 and explains the version 8 pre-release caveat. It also adds instructions for configuring Prisma with PostgreSQL, setting DATABASE_URL, and running migrations, generation, and the server.

Changes

Prisma integration documentation

Layer / File(s) Summary
Pin Prisma package versions
docs/integrations/prisma.md
The install commands pin prisma and @prisma/client to version 7. A note explains the version 8 pre-release caveat and package version alignment.
Configure PostgreSQL
docs/integrations/prisma.md
The guide adds @prisma/adapter-pg setup, DATABASE_URL configuration, optional Prisma Postgres provisioning, and commands for migrations, generation, and starting the server.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: leopc1977, saltyaom

Merge Risk: Minimal · up to 463f0

The version pin and PostgreSQL instructions have no established merge-blocking defect. The documentation is ready to merge with normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes both main changes: pinning Prisma ORM 7 and adding PostgreSQL documentation.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Version seven, neatly pinned~
PostgreSQL joins the guide, all lined~
PrismaPg meets its connection string~
Migrations and generators do their thing~
Start the server—look who’s got this covered, hmm? ♡

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 73f8e234-b407-46eb-b1a9-876c1580f833
Commits

Reviewing files that changed from the base of the PR and between f1c5e9b and 463f02b.

Files selected for processing: 1
  • docs/integrations/prisma.md

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@ankur-arch

Copy link
Copy Markdown
Contributor Author

@SaltyAom would you mind taking a look? Small change, tested end to end on Bun 1.4.3. Happy to adjust anything.

@ankur-arch

Copy link
Copy Markdown
Contributor Author

@SaltyAom gentle follow-up on this one. It only pins the Prisma packages to 7 (unpinned bun add prisma now installs the Prisma 8 CLI, which breaks the existing steps) and adds the PostgreSQL section. Happy to rebase or adjust if anything is in the way.

@SaltyAom
SaltyAom merged commit 4aa2990 into elysiajs:main Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants