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

[6.0.2] Restore the ability to break multiple FK cycles #26959

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

AndriySvyryd
Copy link
Member

Fixes #26834

Description

Due to a bug fix EF lost the ability to break table cycles where each table participates in multiple cycles.

Customer impact

An exception is thrown when adding a migration that creates tables linked by multiple foreign key cycles. A workaround would be to add tables without foreign key first, then create another migration for the foreign keys.

How found

Customer report on 6.0.0.

Regression

Yes, from 5.0. Regressed by #25952

Testing

This PR adds coverage for this scenario.

Risk

Low; the fix only affects migrations produced during design-time. Quirk mode not added as there isn't a practical way to access the AppContext used by CLI tools.

@AndriySvyryd AndriySvyryd added this to the 6.0.x milestone Dec 10, 2021
@AndriySvyryd AndriySvyryd requested a review from a team December 10, 2021 03:01
@AndriySvyryd AndriySvyryd changed the title Restore the ability to break multiple FK cycles [6.0.2] Restore the ability to break multiple FK cycles Dec 10, 2021
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.

3 participants