Skip to content

docs(cli): db migrate now suggests commands that run when no migration reaches the target - #8876

Closed
wmadden-electric wants to merge 1 commit into
mainfrom
docs/path-unreachable-suggested-commands
Closed

wmadden-electric wants to merge 1 commit into
mainfrom
docs/path-unreachable-suggested-commands

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

db migrate fails with MIGRATION.PATH_UNREACHABLE when you change the contract, emit it, and do not plan a migration. Until now the commands that error printed did not run, so this page told readers not to run them. prisma/orm#31130 fixes the error, and it now prints:

→ Plan the missing edge: prisma migration plan --from <current hash> --name <slug>
→ Apply it: prisma db migrate

This change shows the new output on the db migrate page and removes the warning (added in #8853). It tells the reader to run the two printed commands.

Do not merge before the release that contains prisma/orm#31130. Until then the page as it is on main describes what users see. That is why this is a draft.

The error reference page needs no change here: it is built from the release, so it picks up the new text when the release that contains prisma/orm#31130 is published.

When this merges, item D37 in docs/orm-docs-audit/changes.md on branch docs/orm8-docs-audit-design is done.

Agent: shakespeare-47

…n reaches the target

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
blog Ready Ready Preview Nov 20, 2026 5:23am UTC
docs Ready Ready Preview Nov 20, 2026 5:23am UTC
eclipse Ready Ready Preview Nov 20, 2026 5:23am UTC
site Ready Ready Preview Nov 20, 2026 5:23am UTC
1 Skipped Deployment
Project Deployment Actions Updated
handbook Skipped Skipped Nov 20, 2026 5:23am UTC

Request Review

@prisma-gizmo

prisma-gizmo Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

⏸️ Gizmo skipped the automatic review of 95327f0 because this pull request is a draft. It will review automatically once the PR is marked ready for review.

  • Check this box to request a one-time review of the current commit.

@vercel
vercel Bot temporarily deployed to Preview – handbook November 20, 2026 05:20 Inactive
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions

Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

34 links: ✅ 0 OK | 🚫 0 errors | 🔀 0 redirects | 👻 34 excluded

✅ All links are working!


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

@wmadden-electric

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #8896, which updated this page for 8.0.0-rc.25. That change already removed the warning against running the printed commands and shows the error text the released CLI prints. With main merged in, this branch has no remaining difference.

This branch was successfully deployed

5 active and 1 inactive deployments
Preview – docs — 95327f00 Deployed Nov 20, 2026 by vercel[bot]
Preview – site — 95327f00 Deployed Nov 20, 2026 by vercel[bot]
Preview – blog — 95327f00 Deployed Nov 20, 2026 by vercel[bot]
Preview – eclipse — 95327f00 Deployed Nov 20, 2026 by vercel[bot]
Preview – handbook — 95327f00 Deployed Nov 20, 2026 by vercel[bot]
prisma-preview/docs/path-unreachable-suggested-commands — 95327f00 Deployed Nov 20, 2026 by wmadden-electric via deploy #1331
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.

1 participant