Prisma Schema docs vs Upgrade to v4 Docs #4237
Unanswered
laurenzhonauer
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
There are some differences between the v4 prisma schema and the schema that results from using the schema from v3 and then following the changes in the upgrade guide.
For example Account.accessToken is not touched in the upgrade guide, but in v3 docs it looks like this:

And in v4 Docs it looks like this

String? in the old version is now String? @db.Text in the new version.
Reason for raising
Im opening this discussion because in my project, which formerly used v3 and is now using v4, I have a bug related to the Access Token. And when looking to the Docs regarding how the schema should look like, the conflicting information is very confusing.
If there is a reason the schema should look different after updating vs creating it in v4 right away, it would be nice to mention it in the upgrade guide.
Beta Was this translation helpful? Give feedback.
All reactions