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-rc2] Fully support int identity seed #26066

Merged
merged 4 commits into from
Sep 18, 2021
Merged

Conversation

roji
Copy link
Member

@roji roji commented Sep 16, 2021

Fixes #26062, replaces #25857.

Description

A change in EF Core 6 to allow for long values in SQL Server identity seed values cause older int values to no longer work.

Customer Impact

Some common migrations scaffolded with earlier versions of EF Core cause errors in EF Core 6.0.

How found

Customer reports on RC1

Test coverage

Added in this PR

Regression?

Yes

Risk

Low, this simply adds support for the legacy int annotation values in two code sites.

@roji roji requested a review from AndriySvyryd September 16, 2021 12:12
@roji roji changed the base branch from release/6.0 to release/6.0-rc2 September 16, 2021 12:12
@roji roji requested a review from dougbu as a code owner September 16, 2021 12:12
@roji roji force-pushed the roji/SuchASmallSeed branch from 88ac92c to 326fbb1 Compare September 16, 2021 12:29
@ajcvickers
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ajcvickers
Copy link
Contributor

@roji Please fill out the template per @Pilchie's email.

@ajcvickers ajcvickers changed the title Fully support int identity seed [6.0-rc2] Fully support int identity seed Sep 16, 2021
@AndriySvyryd
Copy link
Member

You can revert the changes from #25857 as they are redundant now.

@roji
Copy link
Member Author

roji commented Sep 17, 2021

@AndriySvyryd reverted.

@Pilchie can we please get this into rc2?

@ajcvickers ajcvickers added this to the 6.0.0-rc2 milestone Sep 17, 2021
@ajcvickers
Copy link
Contributor

@roji Approved by Tactics, but note that there looks like real test failures here.

@AndriySvyryd
Copy link
Member

The change made to GetIdentitySeed(this IReadOnlyProperty property, in StoreObjectIdentifier storeObject) should also be made to GetIdentitySeed(this IReadOnlyModel model)

@roji roji merged commit 2453c3b into release/6.0-rc2 Sep 18, 2021
@roji roji deleted the roji/SuchASmallSeed branch September 18, 2021 09:05
@ajcvickers ajcvickers removed this from the 6.0.0-rc2 milestone Oct 6, 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.

Issue still exists with 32-bit identity seed values in migrations
3 participants