-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Update schema.prisma #4201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Update schema.prisma #4201
Changes from 1 commit
ab6e41e
9ff57b9
b1820fa
34929ed
4427874
1779552
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,9 +5,10 @@ generator client { | |||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| datasource db { | ||||||||||||||||||||||||||||||||
| provider = "postgresql" | ||||||||||||||||||||||||||||||||
| url = env("DATABASE_URL") | ||||||||||||||||||||||||||||||||
| relationMode = "prisma" | ||||||||||||||||||||||||||||||||
| provider = "postgresql" | ||||||||||||||||||||||||||||||||
| url = env("DATABASE_URL") | ||||||||||||||||||||||||||||||||
| directUrl = env("DIRECT_DATABASE_URL") | ||||||||||||||||||||||||||||||||
| relationMode = "prisma" | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
|
Comment on lines
7
to
10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| model User { | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DIRECT_DATABASE_URLWhen
directUrlis declared inschema.prismapointing toenv("DIRECT_DATABASE_URL"), Prisma requires that environment variable to be present at both client-generation time (prisma generate) and at runtime. Any existing deployment — CI, staging, self-hosted installs — that doesn't defineDIRECT_DATABASE_URLwill fail with a Prisma validation error immediately after upgrading. The env var and its purpose (e.g., a non-pooled connection URL for migrations) should be documented and added to all environment configs before this change lands.