Why does Prisma use text
type in Postgres for String
in Prisma Schema by default?
#9915
Unanswered
talhabalaj
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It doesn't make a difference, actually using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because it's
varchar(191)
MySQL. Isn't it generally a good idea to limit the size of the string?I do know I can use
@db.Varchar(<length>)
to get desired length. I am just curious about the default choice beingtext
in Posgres.Beta Was this translation helpful? Give feedback.
All reactions