Repository navigation
feat: referentialActions GA - #8961
Merged
Merged
Conversation
# Conflicts: # packages/client/src/__tests__/integration/happy/referentialActions-onDelete-cascade-sqlserver/schema.prisma # packages/engine-core/src/binary/BinaryEngine.ts # packages/sdk/src/engine-commands/getDmmf.ts
Jolg42
commented
Aug 27, 2021
| one Int | ||
| two Int | ||
| a a @relation(fields: [one, two], references: [one, two]) | ||
| a a @relation(fields: [one, two], references: [one, two], onUpdate: Restrict) |
Contributor
Author
There was a problem hiding this comment.
MySQL 8.0 defaults to NO ACTION
MySQL 5.6 and 5.7 to RESTRICT
MariaDB to RESTRICT
Jolg42
commented
Aug 27, 2021
| user_id BigInt @mysql.UnsignedBigInt | ||
| title String @mysql.VarChar(50) | ||
| users users @relation(fields: [user_id], references: [id]) | ||
| users users @relation(fields: [user_id], references: [id], onDelete: NoAction) |
Contributor
Author
There was a problem hiding this comment.
MySQL 8.0 defaults to NO ACTION
MySQL 5.6 and 5.7 to RESTRICT
MariaDB to RESTRICT
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integration of engine with referentialActions GA