Skip to content

chore: main carries the 5.x line again; one line here, SchemaKit in its own repository - #212

Merged
CaffeinatedCoder merged 32 commits into
mainfrom
chore/211-main-carries-5x
Nov 11, 2026
Merged

CaffeinatedCoder merged 32 commits into
mainfrom
chore/211-main-carries-5x

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

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 on release/5.x, SchemaKit on main. That left:

  • main, the default branch, at a stale 5.5.0, while the line that ships (5.6.1) sat on release/5.x, 30 commits ahead;
  • Closes #n acting only on main, so every 5.x fix closed its issue by hand;
  • nightly.yml dispatching a "second line" that was the only line;
  • CLAUDE.md, AGENTS.md, CONTRIBUTING.md, SECURITY.md, ROADMAP.md and the workflow comments saying main becomes SchemaKit and a fix goes to main first 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 in main.

1. fc3575d merges origin/release/5.x into main. 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):

2. 86a688e rewrites the two-lines text to one line plus a pointer to the SchemaKit repository.

  • CONTRIBUTING.md: "Branches and releases" describes one line on main, with a short "Where release/5.x went" for anyone following an old issue. "Releases on two lines" becomes "Releases". The Lines bullet of the label legend follows.
  • AGENTS.md: the Branches bullet, the silent-fix bullet ("on every line that has the code" is gone) and the epic example version.
  • CLAUDE.md: the CI section (triggers, reusable workflow, nightly), Tracking, the SecurityPolicyConsistencyTests row, the blob/main paragraph and the ROADMAP paragraph.
  • SECURITY.md: one supported line. SchemaKit's vulnerabilities and supported versions go to its repository. "How the table changes" and "For how long" lose the 11.x row and bullet.
  • Directory.Build.props: CompanionLineRelease is removed, and RepositoryLayout.CompanionLineRelease with it. There is no other line to record.
  • ROADMAP.md: a note dated 2026-11-11 at the top, and "superseded" markers on the three statements that no longer hold (D7, the branching paragraph, the repository rename in 5.8). The rest stays as the record of the 2026-10-19 plan.
  • Workflows: dotnet.yml and pr-hygiene.yml trigger on main only. release/** and net11 leave the filters: a run on release/5.x reads that branch's own workflow files, so nothing on main served it. Comments in dotnet.yml, nightly.yml, release.yml, pr-hygiene.sh and src/Directory.Build.targets say what is true now. The --latest=false rule in release.yml stays, 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 removed

The choice was between keeping the release-lines job with an empty RELEASE_LINES, or removing it. I removed it, with its env block. An empty loop would be a job that always succeeds and holds actions: write for nothing. The report job now needs default-branch alone.

CiInputConventionTests needed no edit and stays meaningful: it never named the dispatch job. It holds that some job calls dotnet.yml on a schedule and that report needs every other job, runs always() and fails on anything but success. With the old dispatch job pasted back and not added to needs, it fails (below).

What happens to the affected issues and PRs

Tests

dotnet build EFCore.ComplexIndexes.slnx is clean, and dotnet test … --filter "TestCategory!=Integration" passes: 711 tests, the same count as on release/5.x. The integration suites were not run locally; CI runs them.

Changed assertion (SecurityPolicyConsistencyTests): the table has exactly one supported row, the minor of PackageValidationBaselineVersion. Before, a second row passed when CompanionLineRelease named it. Each case below was run against a broken subject and restored:

Broken subject Result
a second row 11.0.x ✅ fails: "has 2 rows … This repository ships one line"
the same, with <CompanionLineRelease>11.0.0</CompanionLineRelease> put back in props and an **11.x** targets **EF Core 11** sentence (the shape that passed before) fails the same way
the row left at 5.5.x fails: "lists 5.5.x as supported, but the latest release is 5.6.x"
< 5.5 ❌ fails: "the two rows should meet"
no supported row fails
**5.x** targets **EF Core 11**, or the sentence removed fails (floor is 10; no sentence)

Unchanged assertions whose subject changed, broken the same way to show they still hold it:

Broken subject Test Result
the old release-lines job back in nightly.yml, not in report's needs CiInputConventionTests fails: "release-lines is not in the report job's needs"
report with needs: [ ], or without if: always() CiInputConventionTests fails
default-branch calling another workflow CiInputConventionTests fails: "No job in nightly.yml calls … dotnet.yml"
the gate renamed from CI WorkflowGateConventionTests fails
--latest=false dropped from the older-than-Latest branch ReleaseWiringConventionTests fails

WorkflowGateConventionTests, ReleaseWiringConventionTests and PackagingConventionTests changed in comments, messages and one test name only. ClaudeMdConsistencyTests needed no change and passes on the new CLAUDE.md.

Not covered by a test: the branch filters in dotnet.yml and pr-hygiene.yml. This PR's own checks show both still run on a PR into main.

Left for the maintainer

🤖 Generated with Claude Code

CaffeinatedCoder and others added 30 commits October 20, 2026 16:07
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>
#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)
Drop a temporal foreign key before the base operations that need it gone (#187, #188)
…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>
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)
CaffeinatedCoder and others added 2 commits November 11, 2026 08:40
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring chore Build, CI, packaging, refactoring with no behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main carries 5.x again: merge release/5.x, retire the branch, rewrite the two-lines text

1 participant