Breaking change with new Prisma schema, how to migrate? #5846
Replies: 3 comments 2 replies
-
|
I don't think we introduce any breaking changes in #4953, it's only TS changes |
Beta Was this translation helpful? Give feedback.
-
|
In the prisma schema, email used to be nullable: The PR makes the email field required. But in my database, I have lots of users without an email address (those who logged in with Facebook for example). |
Beta Was this translation helpful? Give feedback.
-
|
I see what you mean... 🤔 Did you try to use Prisma Migrate? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I can't upgrade to the latest version of
next-authbecause of the typing change. I have my own custom Prisma adapter. It now looks like email isn't nullable anymore?But, how am I supposed to migrate this? I have tons of users who logged in using the Facebook provider, and it didn't save the email.
Related to #4953
Originally posted by @baptisteArno in #5708
Beta Was this translation helpful? Give feedback.
All reactions