Skip to content

feat(blog): add new migrations blog#7672

Open
mhartington wants to merge 2 commits intomainfrom
migrations-blog
Open

feat(blog): add new migrations blog#7672
mhartington wants to merge 2 commits intomainfrom
migrations-blog

Conversation

@mhartington
Copy link
Member

@mhartington mhartington commented Mar 18, 2026

Summary by CodeRabbit

  • Documentation
    • Published a new blog post introducing "Prisma Next" migrations.
    • Explains limitations of traditional migrations and presents a graph-based migration model with from/to hashes.
    • Describes operation lifecycle (precheck, execute, postcheck), conflict resolution across branches, verification and retry safety.
    • Covers advanced workflows: squashing, baselining, splitting, and next steps for adoption.

@vercel
Copy link

vercel bot commented Mar 18, 2026

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

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Mar 18, 2026 8:36pm
docs Ready Ready Preview, Comment Mar 18, 2026 8:36pm
eclipse Ready Ready Preview, Comment Mar 18, 2026 8:36pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 18, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b52bd62d-2d9f-4961-97bb-804fa7ca73d2

📥 Commits

Reviewing files that changed from the base of the PR and between 47d04de and 7b27c11.

📒 Files selected for processing (1)
  • apps/blog/content/blog/rethinking-database-migrations/index.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/blog/content/blog/rethinking-database-migrations/index.mdx

Walkthrough

Adds a new MDX blog post documenting Prisma Next migrations: migration structure and JSON schemas, from/to hash concepts, graph-based migration model, operation phases (precheck/execute/postcheck), conflict resolution, verification/retry safety, squashing, baselining, and splitting.

Changes

Cohort / File(s) Summary
New Blog Post
apps/blog/content/blog/rethinking-database-migrations/index.mdx
Adds a comprehensive MDX article with frontmatter (title, slug, date, authors, meta, tags) and detailed content covering migration.json and ops.json schemas, from/to hashes, graph-based migration model, operation structure (precheck/execute/postcheck), conflict resolution across branches, verification and retry safety, squashing, baselining, splitting, and next-step guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ 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 'feat(blog): add new migrations blog' directly and accurately describes the main change—adding a new blog post about database migrations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

📝 Coding Plan
  • Generate coding plan for human review comments

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.

@argos-ci
Copy link

argos-ci bot commented Mar 18, 2026

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

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Mar 18, 2026, 8:51 PM

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
apps/blog/content/blog/rethinking-database-migrations/index.mdx (1)

20-20: Consider varying repeated phrasing for tighter prose.

“You've probably...” appears in close proximity twice; swapping one instance for a different lead-in would improve rhythm.

Also applies to: 34-34

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/blog/content/blog/rethinking-database-migrations/index.mdx` at line 20,
The two nearby sentences both start with "You've probably..."; replace one
instance (either the earlier "If you've written migrations before, you've
probably seen something like this:" or the later occurrence at the noted nearby
line) with an alternative lead-in such as "If you've worked with migrations
before..." or "Chances are you've encountered..." to avoid repetition and
tighten the prose while keeping the same meaning.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/blog/content/blog/rethinking-database-migrations/index.mdx`:
- Line 182: Update the Markdown link URL for the Discord invite so it uses HTTPS
instead of HTTP: change the link target
"http://pris.ly/discord?utm_campaign=prisma-next" to
"https://pris.ly/discord?utm_campaign=prisma-next" for the line containing the
"#prisma-next" Discord link so external links remain secure.
- Around line 77-83: The fenced code block labeled "json" contains
JavaScript-style comments which are invalid JSON; update that fenced block by
either changing the language tag from `json` to `jsonc` (so comments are
allowed) or removing the `// ...` inline comments from the object so it becomes
valid JSON; locate the fenced snippet containing the keys "from", "to", and
"description" and apply the chosen fix.

---

Nitpick comments:
In `@apps/blog/content/blog/rethinking-database-migrations/index.mdx`:
- Line 20: The two nearby sentences both start with "You've probably...";
replace one instance (either the earlier "If you've written migrations before,
you've probably seen something like this:" or the later occurrence at the noted
nearby line) with an alternative lead-in such as "If you've worked with
migrations before..." or "Chances are you've encountered..." to avoid repetition
and tighten the prose while keeping the same meaning.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3af6578d-4bc4-47ed-8593-ee5ef5f9c842

📥 Commits

Reviewing files that changed from the base of the PR and between e646ce5 and 47d04de.

⛔ Files ignored due to path filters (3)
  • apps/blog/public/rethinking-database-migrations/imgs/hero.png is excluded by !**/*.png
  • apps/blog/public/rethinking-database-migrations/imgs/hero.svg is excluded by !**/*.svg
  • apps/blog/public/rethinking-database-migrations/imgs/meta.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/blog/content/blog/rethinking-database-migrations/index.mdx

Align the new migrations article with review feedback by using jsonc for commented snippets, securing the Discord link with https, and tightening repeated phrasing.

Made-with: Cursor
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