I've migrated from 1 to 3, but when I db pull, my ...
# prisma1-community
l
I've migrated from 1 to 3, but when I db pull, my field names are singular and capitalized. E.g. Prisma 1 schema type User { … posts: Post[] } Vs Prisma 3 db pull model User { … Post: Post[] … } What am I missing?
n
Hey Dennis 👋 this is the default introspection behaviour. The Prisma CLI always spells the relation fields in the exact same way as the model name, there’s an open issue for that here: https://github.com/prisma/prisma/issues/2502 FWIW, you can rename these fields manually and future introspection runs will remember the relation field name you’ve given.