Skip to content

fix(docs): use db push for local prisma postgres#7920

Draft
AmanVarshney01 wants to merge 1 commit into
mainfrom
aman/fix-local-prisma-postgres-docs
Draft

fix(docs): use db push for local prisma postgres#7920
AmanVarshney01 wants to merge 1 commit into
mainfrom
aman/fix-local-prisma-postgres-docs

Conversation

@AmanVarshney01
Copy link
Copy Markdown
Member

Summary

  • update local Prisma Postgres setup to save the direct postgres:// URL from prisma dev
  • use prisma db push for local schema sync instead of prisma migrate dev
  • fix the port guidance so --port is shown on prisma dev, not migrate dev
  • clarify that migration files should be created against a development PostgreSQL database that supports the full migration workflow

Root cause

The local development page instructed users to run prisma migrate dev against local Prisma Postgres. Reproducing the issue with Prisma 7.8.0 returned P1017, while prisma db push succeeded against the same local server and schema.

Validation

  • reproduced P1017 with DATABASE_URL=postgres://... npx prisma migrate dev --name init
  • verified DATABASE_URL=postgres://... npx prisma db push succeeds against local Prisma Postgres
  • pnpm exec cspell content/docs/postgres/database/local-development.mdx --show-context
  • git diff --check

Fixes #7886

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment May 26, 2026 1:26pm
docs Ready Ready Preview, Comment May 26, 2026 1:26pm
eclipse Ready Ready Preview, Comment May 26, 2026 1:26pm
site Ready Ready Preview, Comment May 26, 2026 1:26pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8869bc8c-d0f3-4713-986a-e0732dfd3ac9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

5 links: ✅ 2 OK | 🚫 0 errors | 🔀 0 redirects | 👻 3 excluded

✅ All links are working!


Full Statistics Table
Status Count
✅ Successful 2
🔀 Redirected 0
👻 Excluded 3
🚫 Errors 0
⛔ Unsupported 0
⏳ Timeouts 0
❓ Unknown 0

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented May 26, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - May 26, 2026, 1:33 PM

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.

Local development documentation for Step 2 does not work

1 participant