Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow long identity seed #25030

Merged
merged 1 commit into from
Jun 4, 2021
Merged

Allow long identity seed #25030

merged 1 commit into from
Jun 4, 2021

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Jun 3, 2021

Properly fallback to model-level defaults

Fixes #24840

@AndriySvyryd AndriySvyryd requested a review from a team June 3, 2021 21:09
var increment = GetAndRemove<int?>(annotations, SqlServerAnnotationNames.IdentityIncrement) ?? 1;
return new(
onModel
? nameof(SqlServerModelBuilderExtensions.UseIdentityColumns)
: nameof(SqlServerPropertyBuilderExtensions.UseIdentityColumn),
? "UseIdentityColumns"
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is sus.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is to prevent us renaming this API without the tests breaking.

@AndriySvyryd AndriySvyryd merged commit fa4b179 into main Jun 4, 2021
@AndriySvyryd AndriySvyryd deleted the Issue24840 branch June 4, 2021 17:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support 64-bit Identity seed values
2 participants