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.
4 Replies
my project structure is like this :
schema.prisma is in ./prisma folder
not in schema folder
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.I see I thought I still need schema.prisma file
No, that is completely replaced by the Prisma Schema folder.