P
Prisma5mo ago
Jay

Problems regarding new feature (v5.15.0)

I got this error when I put schema.prisma in the same folder as subschemas. Following this guide : https://www.prisma.io/blog/organize-your-prisma-schema-with-multi-file-support
Prisma
Organize your Prisma Schema into multiple files with Prisma ORM ver...
With Prisma ORM 5.15.0 you can now use multiple Prisma Schema files instead of just one. Learn how to enable this Preview feature and check out a real-world example.
No description
4 Replies
Jay
Jay5mo ago
my project structure is like this :
./prisma
/schema
./schema.prisma
./prisma
/schema
./schema.prisma
schema.prisma is in ./prisma folder not in schema folder
Jan Piotrowski (janpio)
That would happen if two .prisma files contain the same model Banner. Did you maybe not remove the old schema.prisma? Or copy it to the schema folder, then move it to a new file but still keep it in the old one? From the project structure, it looks like you are doing the last one. You should move all the files to prisma/schema folder and not have a prisma/schema.prisma any more.
Jay
Jay5mo ago
I see I thought I still need schema.prisma file
Jan Piotrowski (janpio)
No, that is completely replaced by the Prisma Schema folder.
Want results from more Discord servers?
Add your server