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

[release/7.0] Take schema into account when comparing FK constraints. #30047

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

AndriySvyryd
Copy link
Member

Fixes #29741

Customer Impact

A foreign key constraint is lost when the model contains two tables with the same name, but in different schemas with FKs referencing the same table. This causes exceptions during SaveChanges and invalid migrations. There are no known workarounds.

Regression?

No.

Risk

Low. This change is constrained to FK comparison and a quirk mode was added.

Verification

Added a test for the affected scenario.

@AndriySvyryd AndriySvyryd requested a review from a team January 13, 2023 01:40
@AndriySvyryd AndriySvyryd changed the title Take schema into account when comparing FK constraints. [release/7.0] Take schema into account when comparing FK constraints. Jan 13, 2023
@ajcvickers ajcvickers merged commit 00e218a into release/7.0 Jan 13, 2023
@ajcvickers ajcvickers deleted the Issue29741 branch January 13, 2023 20:33
@ajcvickers ajcvickers added this to the 7.0.3 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants