Remove DATABASE_URL from MongoDB datasource#7299
Conversation
The datasource property `url` is no longer supported in schema files. Move connection URLs for Migrate to `prisma.config.ts` and pass either `adapter` for a direct database connection or `accelerateUrl` for Accelerate to the `PrismaClient` constructor. See https://pris.ly/d/config-datasource and https://pris.ly/d/prisma7-client-config
WalkthroughThis PR removes a single line from a Prisma schema documentation example—specifically the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes This is a minimal, single-line deletion in documentation. The change is straightforward and localized to one code snippet without structural modifications or logic implications. Possibly related PRs
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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. Comment |
DevRGD
left a comment
There was a problem hiding this comment.
Remove DATABASE_URL from MongoDB datasource
|
Thank you for your PR! Unfortunately Mongo is not compatible with Prisma 7 as of right now, so we are going to keep it as is. We will be adding a compatibility note. |
The datasource property
urlis no longer supported in schema files. Move connection URLs for Migrate toprisma.config.tsand pass eitheradapterfor a direct database connection oraccelerateUrlfor Accelerate to thePrismaClientconstructor. See https://pris.ly/d/config-datasource and https://pris.ly/d/prisma7-client-configSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.