Repository navigation
Correct three statements in the upgrade and constraints guides - #159
Merged
Merged
Conversation
- Upgrading, 5.5.0: until the upgrade migration exists, has-pending-model-changes reports changes and Migrate() raises EF Core's pending-model-changes error. The rendering version alone is no pending change (measured: a v2 or unversioned snapshot against the v3 model yields no operation). (#152) - Upgrading, SQLite rebuilds: an unkeyed ReplaceService is refused even when the generator derives from SQLite's; what decides it is the key. (#153) - PostgreSQL constraints: the default temporal constraint name has one underscore after the table, as the differ produces it. (#154) Closes #152 Closes #153 Closes #154 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #152
Closes #153
Closes #154
Problem
Three statements in docs new or current in 5.5.0 were wrong or incomplete:
ReplaceService<IMigrationsSqlGenerator, TNew>()is refused even whenTNewderives from it (SqliteTableRebuildTests.Replaced_generator_is_refused, whoseAuditingGeneratorderives fromSqliteMigrationsSqlGenerator). What decides it is the key.docs/postgresql-constraints.mdshowed the default temporal constraint name asAK_Bookings__RoomId_ValidPeriod.Change
docs/upgrading.md, 5.5.0 introduction: "Until that migration exists,has-pending-model-changesreports changes andMigrate()raises EF Core's pending-model-changes error." Then "The new version alone is not a pending change."HasDifferencesis false andMigrate()does not raise. Only a model with an actual changed answer gets the error.docs/upgrading.md, SQLite rebuilds: the refusal is described by the unkeyedReplaceService, and the guide says it holds for a derived generator too.docs/postgresql-constraints.md:AK_Bookings_RoomId_ValidPeriod.No changelog line, since these fix docs new in this release, or a doc comment.
Tests
Docs only. Each claim was checked by running the code:
MigrationHarness.NpgsqlDiffandNpgsqlSqlon the doc's model, emitsALTER TABLE "Bookings" ADD CONSTRAINT "AK_Bookings_RoomId_ValidPeriod" UNIQUE ("RoomId", "ValidPeriod" WITHOUT OVERLAPS);. The composite sample givesAK_Bookings_Facility_RoomId_ValidPeriod; the doc shows only itsUNIQUEclause, which matches.GetDifferencesreturned 0 operations andHasDifferencesreturned false, both for an index model at v2 → v3 and for an exclusion-only model at none → v3.DocumentationLinkTestsandDocumentationApiTests.🤖 Generated with Claude Code