Re-Introspection: referentialIntegrity = prisma
not respected when using @@map()
#11022
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines
Issue for tech Engines.
topic: re-introspection
topic: referentialIntegrity/relationMode
Milestone
Bug description
I have the following schema for a database (see below)
and when i run
prisma db pull
all of my relations are removed.however when i remove the use of the
@@map()
function call, the relations are maintained. I am unsure if this is by design or not?I created the database before i knew what prisma was and we have a few stored procedures so updating the table names would not be without a headache
How to reproduce
referentialIntegrity
feature and set it toprisma
prisma generate
prisma db push
prisma db pull
and see the relations are removedExpected behavior
relations are maintained even when using the
@@map()
functionPrisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: