Skip to content

feat: referentialActions GA - #8961

Merged
Jolg42 merged 12 commits into
mainfrom
pr/referentialActions-GA
Aug 27, 2021
Merged

Jolg42 merged 12 commits into
mainfrom
pr/referentialActions-GA

Conversation

@Jolg42

@Jolg42 Jolg42 commented Aug 27, 2021 •

Copy link
Copy Markdown
Contributor

Integration of engine with referentialActions GA

@Jolg42 Jolg42 added this to the 2.31.0 / 3.0.x milestone Aug 27, 2021
Jolg42 added 6 commits August 27, 2021 10:07
# 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
Jolg42 marked this pull request as ready for review August 27, 2021 08:40
@Jolg42 Jolg42 linked an issue Aug 27, 2021 that may be closed by this pull request
one Int
two Int
a a @relation(fields: [one, two], references: [one, two])
a a @relation(fields: [one, two], references: [one, two], onUpdate: Restrict)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MySQL 8.0 defaults to NO ACTION
MySQL 5.6 and 5.7 to RESTRICT
MariaDB to RESTRICT

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MySQL 8.0 defaults to NO ACTION
MySQL 5.6 and 5.7 to RESTRICT
MariaDB to RESTRICT

@Jolg42

Jolg42 commented Aug 27, 2021

Copy link
Copy Markdown
Contributor Author

Will unblock next engines PR
#8952
#8958

@williamluke4 williamluke4 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@Jolg42
Jolg42 merged commit b6afed6 into main Aug 27, 2021
@Jolg42
Jolg42 deleted the pr/referentialActions-GA branch August 27, 2021 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove referentialActions preview flag

2 participants