Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix relation_fields validation to accept primary key indexes #4376

Merged
merged 3 commits into from Mar 19, 2024

Conversation

yubrot
Copy link
Contributor

@yubrot yubrot commented Oct 23, 2023

This resolves prisma/language-tools#1387.

The existing implementation did not take into account indexes by primary key. This has been corrected.

There is room for consideration that indexes() may have to include primary keys, but this PR does not address that.

@yubrot yubrot requested a review from a team as a code owner October 23, 2023 12:42
@yubrot yubrot requested review from jkomyno and Druue and removed request for a team October 23, 2023 12:42
@CLAassistant
Copy link

CLAassistant commented Oct 23, 2023

CLA assistant check
All committers have signed the CLA.

@apolanc apolanc added the PR: Bug A PR That Fixes a bug label Mar 13, 2024
@SevInf SevInf assigned Druue and Weakky and unassigned Druue Mar 15, 2024
@yubrot yubrot requested a review from a team as a code owner March 18, 2024 16:51
Copy link

codspeed-hq bot commented Mar 18, 2024

CodSpeed Performance Report

Merging #4376 will not alter performance

Comparing yubrot:fix-relation-fields-validation (ee9e65a) with main (93f79ec)

Summary

✅ 11 untouched benchmarks

@Druue Druue added this to the 5.12.0 milestone Mar 18, 2024
@Druue
Copy link
Contributor

Druue commented Mar 18, 2024

Hey, @yubrot this looks great, thank you so much for the contribution!

@Druue Druue merged commit 973c18a into prisma:main Mar 19, 2024
200 checks passed
@yubrot yubrot deleted the fix-relation-fields-validation branch March 22, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bug A PR That Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Composite Primary Key with relationMode Prisma and Foreign Key
6 participants