referentialIntegrity/relationMode preview feature (referentialIntegrity = "prisma"
): Make NoAction
a synonym/alias of Restrict
for the emulation, for all databases except PostgreSQL & SQLite.
#15655
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
team/schema
Issue for team Schema.
tech/engines
Issue for tech Engines.
topic: referentialIntegrity/relationMode
Milestone
More details in https://www.notion.so/prismaio/How-do-we-GA-the-referentialIntegrity-preview-feature-8a656fe445ae4a69ad19c5000e5c7191#66d361e2770c4bedb619a2a3052f884c
We decided that for Prisma's emulation we want to make
NoAction
an alias ofRestrict
except for PostgreSQL and SQLite, where we want to make it invalid and have a validation error likeNoAction is not implemented for PostgreSQL and SQLite, you could try using Restrict, which behaves the same if you do not need to defer constraint checks in a transaction, see docs at
When using
referentialIntegrity = "prisma"
:Current situation
What we want
After the engines part is done, we want to validate with prisma/prisma tests based on #14221
TODOs:
NoAction
forpostgres
andsqlite
prisma-engines#3274NoAction
should be alias ofRestrict
whenrelationMode = "prisma"
prisma-engines#3276The text was updated successfully, but these errors were encountered: