Skip to content

[8.0] Preserve inherited HiLo sequences in model snapshots - #4033

Merged
roji merged 1 commit into
hotfix/8.0.12from
roji-hilo-snapshot-backport-8-0
Oct 18, 2026
Merged

roji merged 1 commit into
hotfix/8.0.12from
roji-hilo-snapshot-backport-8-0

Conversation

@roji

@roji roji commented Oct 18, 2026

Copy link
Copy Markdown
Member

Backport of #4031 (commit bde0e12) to hotfix/8.0.12.

Fixes #3613.

Resolve property-level HiLo snapshot arguments from the model's sequence name/schema when no property override is present. This prevents unwanted default sequences, repeated DropSequence migrations, and model mismatches without changing public UseHiLo semantics.

The fix and regression tests are unchanged from the original commit. Coverage includes all four inherited name/schema combinations and explicit property overrides.

Validation: all four inherited-sequence regression cases fail before the fix; all 21 NpgsqlAnnotationCodeGeneratorTest cases pass after it using:

dotnet test test/EFCore.PG.Tests/EFCore.PG.Tests.csproj --no-restore --filter FullyQualifiedName~NpgsqlAnnotationCodeGeneratorTest --verbosity quiet

Backport #4031 for #3613. Resolve property-level HiLo snapshot arguments from model configuration while preserving explicit property overrides.

(cherry picked from commit bde0e12)

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2cb7624f-a080-43fe-b454-f33de1b9f32d
@roji roji linked an issue Oct 18, 2026 that may be closed by this pull request
@roji
roji merged commit a9d0fd0 into hotfix/8.0.12 Oct 18, 2026
9 checks passed
@roji
roji deleted the roji-hilo-snapshot-backport-8-0 branch October 18, 2026 20:55
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.

EF Core continuous migration error with npgsql HiLo

1 participant