Repository navigation
chore: main carries the 5.x line again; one line here, SchemaKit in its own repository - #212
Merged
Merged
Conversation
Bump Version to 5.5.1 and the package-validation baseline to 5.5.0, name 5.5.x (the latest release on NuGet) in the supported-versions table, and add a 5.5.1 heading to every changelog, so each 5.5.1 fix PR adds its line under it. The heading's date is set again in the commit that gets tagged. Closes #177 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore: open 5.5.1 on release/5.x
#182 changes what a column rename scaffolds, so it ships in a minor. 5.5.1 had no change yet; its heading becomes 5.6.0 in the commit that adds the first entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The differs compared the source under its old column names and the target under the new ones, so every complex index, exclusion constraint and temporal constraint on a renamed column was dropped before the rename and created again after it, a full rebuild under an exclusive lock. PostgreSQL, SQL Server and SQLite all keep them through a rename. The source model is now resolved under the names the base RenameColumnOperations give its columns (ResolveSource, RenderedColumn). Only SQL this package renders from a column takes the new name: column parts, placeholders, JSON extractions, INCLUDE entries and the implicit SQL Server filter. Names still come from the source's own columns, so a default name that follows the column becomes a rename, as EF Core's do. Verbatim SQL is compared as written. Closes #182 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…umn it filters on CI's SQL Server lane showed sp_rename rejecting a column a filtered index's predicate reads: "The index 'ix_name_email_active' is dependent on column 'revoked_at'. RENAME COLUMN revoked_at failed because one or more objects access this column." A key or included column is renamed under the index. The in-the-way check now also passes the columns the filter names to an internal RequiresIndexRecreation overload, and the SQL Server differ drops such an index before a RenameColumnOperation of one of them and creates it after, the implicit IS NOT NULL filter included. EF Core rebuilds its own filtered indexes on a rename for the same reason. Refs #182 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A column rename keeps the indexes and constraints on the column (#182)
PostgreSQL cannot change a generation expression in place, so Npgsql renders an ALTER COLUMN that changes a generated column's expression, its storage or a tsvector column's configuration as DROP COLUMN plus ADD COLUMN, and re-creates only EF Core's own indexes. DROP COLUMN took every complex index, exclusion constraint, temporal constraint and temporal foreign key on the column with it. Their declarations were unchanged, so the differs emitted nothing: the migration ran without an error, the snapshot still listed them, and the database had none. The Npgsql differ now treats such an operation as in the way, with the same condition Npgsql uses (RecreatesColumn, which also compares the tsvector annotations Npgsql turns into the expression). Complex indexes go through RequiresIndexRecreation; exclusion and temporal constraints get the same check, a rename pair included, and a temporal foreign key goes with a rebuilt principal constraint. All are dropped before the base operations and added after them. Closes #184 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n-rebuild A changed generated column keeps the indexes and constraints on it (#184)
… on the table EF Core writes the target's schema into RenameTableOperation.NewSchema, null for the default schema. The differs read null as "unchanged", so a table moved into the default schema was compared under its old schema and every complex index, exclusion constraint, temporal constraint and temporal foreign key on it was dropped and created again. On SQL Server that rebuilt each index although ALTER SCHEMA ... TRANSFER keeps them. On PostgreSQL, where Npgsql 10 writes nothing for that move, the creates named a table that was not there (42P01). NewSchema is now read as EF Core writes it in the three places that built renamed-table identities, as the SQLite rebuild path already did. Closes #185 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…move A move into the default schema keeps the indexes and constraints on the table (#185)
…exes on the column EF Core emits an AlterColumnOperation for any column facet that differs, and its SQL Server generator issues ALTER COLUMN only for some of them: a default is DROP CONSTRAINT plus ADD DEFAULT, a comment sp_addextendedproperty. The SQL Server differ took every AlterColumnOperation on a column an index reads as in the way (#84, #141), so a default or comment change rebuilt every complex index on the column, offline on every edition but Enterprise. RequiresIndexRecreation now asks what EF Core's generator asks (IssuesAlterColumn: its alterStatementNeeded plus the computed-column drop and re-add). A type, length, nullability, collation or computed change still rebuilds the index. Closes #186 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… it gone Two base operations met a temporal foreign key the differ had left in place, and the migration failed at apply. A key whose dependent table the base operations drop was left to go with the table, also when its principal constraint was dropped or changed. That drop runs before the base operations, while the key still referenced it (2BP01, #187). The key is now dropped first whenever its principal constraint is dropped, changed or rebuilt. A key column's type changed on both tables: PostgreSQL re-checks the key after each ALTER COLUMN, and a GiST key has no cross-type operator, so a dependent altered before its principal failed (42804, #188). A type change on a key column on either side is now in the way of the key (RetypedColumns), so it is dropped before the base operations and added after. Closes #187 Closes #188 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o case SQL Server reads identifiers without regard to case under its default collation, so a filter [note] IS NULL or an INCLUDE entry "note" reads the column Note, and ValidateIncludedColumns accepts that spelling. The check that moves an unchanged index out of the way of ALTER COLUMN (and, since #182, of a rename of a column its filter reads) matched names ordinally, missed the dependency, and the migration failed at apply. ColumnsReadBy and ColumnsNamedIn now compare under IndexNameComparer: case-insensitive on SQL Server and SQLite, ordinal on PostgreSQL, where a quoted "note" is another column than "Note". Closes #189 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-column On SQL Server, a default or comment change keeps the complex indexes on the column (#186)
…mporal-fk # Conflicts: # CLAUDE.md
…nsensitive-columns # Conflicts: # CLAUDE.md
…nsensitive-columns # Conflicts: # CHANGELOG.md # CLAUDE.md
…me from
The merge of release/5.x committed conflict markers in CLAUDE.md. The
line itself was already damaged on release/5.x: two earlier conflict
resolutions appended a sentence after an anchor that the line continues
past, so its tail ("Because renames run after the base operations, a
pair stays a") appeared twice. Rebuilt with the #186, #187/#188 and #189
sentences once each and the tail once.
Refs #189
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-columns On SQL Server, match the columns an index reads without regard to case (#189)
…it becomes a rename A temporal foreign key whose drop and add differ only by name became RENAME CONSTRAINT, placed after the base operations, and its only guard was the #143 name-in-use check. The index, exclusion and temporal constraint rename paths also ask whether the object is in the way; the foreign key path did not. So #188 (a retyped key column) and #187 (a rebuilt or changed principal constraint) did not reach a key whose name changed in the same migration, and a default name changes with the principal table's: 42804 or 2BP01 at apply. The pair now stays a drop before and an add after when the key is in the way (ForeignKeyInTheWay), its principal constraint is rebuilt or changed, or its old name is taken. Closes #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion snapshot A temporal foreign key stores its principal as the CLR FullName, which for a generic type is "Room`1[[System.Int32, ...]]" where EF names the entity type "Room<int>". The live model matched through ClrType; a snapshot's property-bag type has no CLR type, so the principal did not resolve and every diff from the snapshot threw: each migrations add after the first, has-pending-model-changes, and Migrate()'s pending-changes check. EntityTypeNames.FromClrFullName converts the stored name by EF Core's own display rule (keywords for built-in types, T? for Nullable<T>, nested generic segments, array ranks), and ResolveEntityType matches either form. Stored names are unchanged, since snapshots hold them. Closes #197 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ame-in-the-way A renamed temporal foreign key asks the in-the-way rules before it becomes a rename (#196)
…c-temporal-principal # Conflicts: # CHANGELOG.md # src/EFCore.ComplexIndexes.PostgreSQL/CHANGELOG.md
…l-principal Resolve a temporal foreign key's generic principal from a migration snapshot (#197)
Bump Version to 5.6.1 and the package-validation baseline to 5.6.0, name 5.6.x (the latest release on NuGet) in the supported-versions table, and add a 5.6.1 heading to every changelog, so each 5.6.1 fix PR adds its line under it. The heading's date is set again in the commit that gets tagged. Closes #200 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore: open 5.6.1 on release/5.x
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: let every PR hygiene run complete (5.x)
SchemaKit is hosted in its own repository, so main is no longer frozen at the v5.5.0 cut. The merge is clean. The merged tree is release/5.x at 5.6.1 plus the SQLitePCLRaw pin main already had (#202, #203), which is byte for byte what #204 would add to release/5.x. The PR hygiene fix (#207) is on both sides. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SchemaKit is hosted in CaffeinatedCoder/CodoMetis.EFCore.SchemaKit (decided 2026-11-11), so this repository ships one line, 5.x, on main. - CLAUDE.md, AGENTS.md, CONTRIBUTING.md and SECURITY.md state one line and point to the SchemaKit repository; ROADMAP.md gets a dated note and marks the three statements that no longer hold. - nightly.yml loses the job that dispatched dotnet.yml on release lines; dotnet.yml and pr-hygiene.yml trigger on main only. - CompanionLineRelease leaves Directory.Build.props, and SecurityPolicyConsistencyTests holds the table to exactly one supported row. Refs #211 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 11, 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 #211
Problem
On 2026-11-11 the maintainer decided that SchemaKit is hosted in its own repository,
CaffeinatedCoder/CodoMetis.EFCore.SchemaKit, and that this repository keeps its name. Until then the plan was two lines here: 5.x onrelease/5.x, SchemaKit onmain. That left:main, the default branch, at a stale 5.5.0, while the line that ships (5.6.1) sat onrelease/5.x, 30 commits ahead;Closes #nacting only onmain, so every 5.x fix closed its issue by hand;nightly.ymldispatching a "second line" that was the only line;mainbecomes SchemaKit and a fix goes tomainfirst and is cherry-picked.No consumer sees any of this. The packages do not change.
Change
Two commits, to be merged with a merge commit (not squashed), so
release/5.x's history is inmain.1.
fc3575dmergesorigin/release/5.xintomain. The merge is clean, with no conflict to decide.main's five own commits are #203 (SQLitePCLRaw pin, #202) and #209 (PR hygiene concurrency, #207):release/5.x, fix: let every PR hygiene run complete #209 onmain) and merges to the same file.release/5.xyet: its 5.x half is the open chore: pin SQLitePCLRaw 2.1.14 in the test project for CVE-2025-6965 (5.x) #204. The merge bringsmain's half, so the merged tree isrelease/5.xat 5.6.1 plus exactly chore: pin SQLitePCLRaw 2.1.14 in the test project for CVE-2025-6965 (5.x) #204's diff (git diff origin/release/5.xshows those three files, 12 lines, and nothing else).2.
86a688erewrites the two-lines text to one line plus a pointer to the SchemaKit repository.main, with a short "Whererelease/5.xwent" for anyone following an old issue. "Releases on two lines" becomes "Releases". TheLinesbullet of the label legend follows.SecurityPolicyConsistencyTestsrow, theblob/mainparagraph and the ROADMAP paragraph.CompanionLineReleaseis removed, andRepositoryLayout.CompanionLineReleasewith it. There is no other line to record.dotnet.ymlandpr-hygiene.ymltrigger onmainonly.release/**andnet11leave the filters: a run onrelease/5.xreads that branch's own workflow files, so nothing onmainserved it. Comments indotnet.yml,nightly.yml,release.yml,pr-hygiene.shandsrc/Directory.Build.targetssay what is true now. The--latest=falserule inrelease.ymlstays, since it is right for any tag older than Latest; only its reason is reworded..github/ISSUE_TEMPLATE/bug.yml: the EF Core hint links the SchemaKit repository for EF Core 11 bugs.nightly.yml: the dispatch job is removedThe choice was between keeping the
release-linesjob with an emptyRELEASE_LINES, or removing it. I removed it, with itsenvblock. An empty loop would be a job that always succeeds and holdsactions: writefor nothing. Thereportjob now needsdefault-branchalone.CiInputConventionTestsneeded no edit and stays meaningful: it never named the dispatch job. It holds that some job callsdotnet.ymlon a schedule and thatreportneeds every other job, runsalways()and fails on anything butsuccess. With the old dispatch job pasted back and not added toneeds, it fails (below).What happens to the affected issues and PRs
release/5.xlinksmain): moot.mainis the 5.x tree, soblob/mainopens the filesDocumentationLinkTestsresolves. Nothing to rewrite; it can be closed as not needed.net11triggers are gone, and "the same change onrelease/5.x" no longer applies. chore: describe the branches as they are in the workflow comments #181 edits the same lines to sayrelease/5.xandmain(SchemaKit), so it conflicts with this PR and is superseded by it. I left both open.dotnet.ymlon that line" and "the roll-forward run checks outrelease/5.x"; all of that ismainnow, and the watcher has no second branch to dispatch.Tests
dotnet build EFCore.ComplexIndexes.slnxis clean, anddotnet test … --filter "TestCategory!=Integration"passes: 711 tests, the same count as onrelease/5.x. The integration suites were not run locally; CI runs them.Changed assertion (
SecurityPolicyConsistencyTests): the table has exactly one supported row, the minor ofPackageValidationBaselineVersion. Before, a second row passed whenCompanionLineReleasenamed it. Each case below was run against a broken subject and restored:11.0.x ✅<CompanionLineRelease>11.0.0</CompanionLineRelease>put back in props and an**11.x** targets **EF Core 11**sentence (the shape that passed before)5.5.x< 5.5 ❌**5.x** targets **EF Core 11**, or the sentence removedUnchanged assertions whose subject changed, broken the same way to show they still hold it:
release-linesjob back innightly.yml, not inreport'sneedsCiInputConventionTestsreportjob's needs"reportwithneeds: [ ], or withoutif: always()CiInputConventionTestsdefault-branchcalling another workflowCiInputConventionTestsCIWorkflowGateConventionTests--latest=falsedropped from the older-than-Latest branchReleaseWiringConventionTestsWorkflowGateConventionTests,ReleaseWiringConventionTestsandPackagingConventionTestschanged in comments, messages and one test name only.ClaudeMdConsistencyTestsneeded no change and passes on the new CLAUDE.md.Not covered by a test: the branch filters in
dotnet.ymlandpr-hygiene.yml. This PR's own checks show both still run on a PR intomain.Left for the maintainer
release/5.x(remove its protection and delete it, or keep it as a frozen pointer).main.Linesbullet has the new wording.🤖 Generated with Claude Code