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] Fix snapshot generation with HiLo #26136

Merged
merged 1 commit into from
Sep 22, 2021
Merged

[6.0] Fix snapshot generation with HiLo #26136

merged 1 commit into from
Sep 22, 2021

Conversation

roji
Copy link
Member

@roji roji commented Sep 22, 2021

Fixes #26134

Description

Incorrect migration generated when the HiLo value generation strategy is configured.

Customer impact

Generating migrations with a model-wide HiLo value generation strategy creates an invalid migration.

How found

Customer

Regression

Yes

Testing

Test for this scenario added in the PR.

Risk

Low, the bug is trivial and the modified code only annotation generation for this particular scenario; coverage is good in this area.

roji added a commit to npgsql/efcore.pg that referenced this pull request Sep 22, 2021
@ajcvickers ajcvickers changed the title Fix snapshot generation with HiLo [6.0] Fix snapshot generation with HiLo Sep 22, 2021
Copy link
Member

@ajcvickers ajcvickers left a comment

Choose a reason for hiding this comment

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

It feels like we're finding quite a few issues stemming from this change. Let's talk about doing some more directed validation/testing before RTM.

@ajcvickers
Copy link
Member

@Pilchie

@Pilchie
Copy link
Member

Pilchie commented Sep 22, 2021

Approved for EFCore 6.0

@roji roji merged commit e0dbe5a into release/6.0 Sep 22, 2021
@roji roji deleted the roji/FixHiLo branch September 22, 2021 18:46
roji added a commit to npgsql/efcore.pg that referenced this pull request Sep 23, 2021
This pull request was closed.
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.

Can't generate a migration using HiLo
3 participants