Skip to content

Conversation

@ArthurGamby
Copy link
Contributor

@ArthurGamby ArthurGamby commented Dec 4, 2025

Automatic seeding during migrate dev/reset was removed in v7.

Summary by CodeRabbit

Documentation

  • Clarified that seeding in Prisma v7 is explicit and now runs via the explicit seed command (no automatic seeding during migrations).
  • Separated v7 and v6 seeding workflows and added highlighted notes explaining the behavioral differences.
  • Updated reference text to state when the seed script runs and where to invoke it.
  • Fixed a MongoDB modeling link to point to the recommended data-modeling best-practices page.

✏️ Tip: You can customize this high-level summary in your review settings.

Automatic seeding during migrate dev/reset was removed in v7.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 4, 2025

Walkthrough

This PR updates Prisma docs to reflect v7 seeding behavior: seeding is now triggered explicitly with npx prisma db seed (removed from automatic migrate flows). It adjusts the seeding guide, migrations config reference, upgrade guide, and fixes a MongoDB link in the data-modeling page.

Changes

Cohort / File(s) Summary
Seeding guide
content/200-orm/300-prisma-migrate/300-workflows/10-seeding.mdx
Adds an inline Prisma v7 info block stating seeding is explicit (npx prisma db seed), moves prior “Prisma 6” content into a collapsible details section, and updates narrative/flags to separate v7 vs v6 behavior; minor whitespace/structural markdown edits.
Migrations config reference
content/200-orm/500-reference/325-prisma-config-reference.mdx
Updates migrations.seed description to state the seed script runs when executing npx prisma db seed (v7) and adds a highlighted note contrasting v7 explicit seeding with v6 automatic seeding.
Upgrade guide
content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/400-upgrading-to-prisma-7.mdx
Inserts a subsection explaining that automatic seeding during migrations was removed in v7 and shows the explicit npx prisma db seed command; added in two locations.
Data modeling link
content/200-orm/050-overview/100-introduction/300-data-modeling.mdx
Adjusts an inline MongoDB modeling link to point to the MongoDB data-modeling best practices page instead of the embedding-vs-references concepts page; no other content changes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Changes are documentation-only but spread across multiple topical files; review focuses on factual accuracy and consistency rather than code.
  • Areas needing extra attention:
    • Ensure v7 vs v6 wording is technically precise and consistent across all files (seed trigger, --skip-seed applicability).
    • Verify the new collapsible/details block doesn’t break rendering or accessibility in the seeding guide.
    • Confirm the updated MongoDB link target is the intended destination.

Possibly related PRs

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main objective of this documentation update: clarifying that Prisma v7 requires explicit calls to 'prisma db seed' rather than automatic seeding during migrations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6d9fa27 and bab988a.

📒 Files selected for processing (1)
  • content/200-orm/050-overview/100-introduction/300-data-modeling.mdx (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7301
File: content/800-guides/410-cloudflare-workers.mdx:87-107
Timestamp: 2025-11-20T21:00:02.587Z
Learning: Do not suggest changes to `prisma.config.ts` files in the prisma/docs repository, as the code examples are intentional for documentation purposes.
📚 Learning: 2025-11-20T21:00:02.587Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7301
File: content/800-guides/410-cloudflare-workers.mdx:87-107
Timestamp: 2025-11-20T21:00:02.587Z
Learning: Do not suggest changes to `prisma.config.ts` files in the prisma/docs repository, as the code examples are intentional for documentation purposes.

Applied to files:

  • content/200-orm/050-overview/100-introduction/300-data-modeling.mdx
📚 Learning: 2025-10-08T16:23:00.388Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:85-90
Timestamp: 2025-10-08T16:23:00.388Z
Learning: For .mdx files in the prisma/docs repository: All headings and titles should use sentence case (e.g., "Getting started with Prisma ORM", "Best practices for authentication"), not title case. Exception: Always preserve exact casing for product names including "Prisma Postgres", "Prisma", "Prisma ORM", and "Prisma Data Platform".

Applied to files:

  • content/200-orm/050-overview/100-introduction/300-data-modeling.mdx
📚 Learning: 2025-10-08T16:22:57.129Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:50-66
Timestamp: 2025-10-08T16:22:57.129Z
Learning: In `.mdx` files, do NOT flag or suggest changes for the following code quality issues even if they represent poor practices: React anti-patterns (using var instead of useState, direct DOM manipulation), missing keys in .map() iterations, non-serializable props in getServerSideProps, unused variables, missing error handling, SQL injection vulnerabilities (unless actively showing how to fix them), insecure cookie settings, missing TypeScript types, PrismaClient instantiation patterns, or any other code quality, security, or performance issues. Documentation code snippets are copied from source code and often intentionally show "before" examples or common mistakes.

Applied to files:

  • content/200-orm/050-overview/100-introduction/300-data-modeling.mdx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Check internal links
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (1)
content/200-orm/050-overview/100-introduction/300-data-modeling.mdx (1)

77-77: Link update improves documentation specificity.

This change refines the reference to MongoDB's data-modeling guidance by pointing to the dedicated best-practices page rather than the embedding-vs-references concepts page. The new link is more directly relevant to the context—Prisma Client's expectation of normalized model design—and guides users to authoritative guidance on MongoDB best practices.


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

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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

🍈 Lychee Link Check Report

Note: Links are cached for 5 minutes. Failed links (timeouts, rate limits) are retried in a second run with longer timeout.

📊 Results Overview

Status Count
🔍 Total 2268
✅ Successful 2237
⏳ Timeouts 0
🔀 Redirected 5
👻 Excluded 24
❓ Unknown 0
🚫 Errors 1
⛔ Unsupported 1

Errors per input

Errors in 200-orm/050-overview/100-introduction/300-data-modeling.mdx

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 4, 2025
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 4, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: bab988a
Status: ✅  Deploy successful!
Preview URL: https://6d08f485.docs-51g.pages.dev
Branch Preview URL: https://dc-6434-doc-update-prisma-db.docs-51g.pages.dev

View logs

@ArthurGamby ArthurGamby merged commit 19241c2 into main Dec 4, 2025
8 checks passed
@ArthurGamby ArthurGamby deleted the DC-6434-doc-update-prisma-db-seed branch December 4, 2025 12:46
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.

3 participants