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/9.0] Don't throw on non-transactional migration operation warning. #34830

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Oct 4, 2024

Fixes #34829

Description

In EF Core 9 we introduced a warning exception when a migration is applied, it contains more than one operation and one of them can't be executed in a transaction. However, we found that there are some non-transactional operations on SQL Server that cannot be separated into several migrations. So we decided to downgrade this to a logged warning.

Customer impact

Exception thrown when applying a migration in the above scenario.

How found

App writing.

Regression

No, new feature

Testing

Tested manually.

Risk

Low.

@AndriySvyryd AndriySvyryd requested a review from a team October 4, 2024 21:33
@artl93
Copy link
Member

artl93 commented Oct 4, 2024

Does this require documentation updates?

@AndriySvyryd
Copy link
Member Author

Does this require documentation updates?

No. We haven't written documentation for this yet 😄

@AndriySvyryd AndriySvyryd merged commit 1c9c8fa into release/9.0 Oct 7, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the NoErrorTransaction branch October 7, 2024 19:34
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