Repository navigation
Description
First cut, 2026-11-14 (#135, not merged): docs/moving-from-complexindexes-5x.md covers what preview.1 ships. The packages and the 5.x design-time reference; the wiring, with what each missed step gives today (#113 still open); exclusion constraints 5.x call by 5.x call against the fixture LegacyHandoverTests and LegacyHandoverLiveTests read, each with what the next migrations add produces; expressions (a raw WithExpression moves with no operations only when its text is the one the lambda renders, measured again on main @ 010ff31); conditions and what the translator refuses, with a nullable comparison's rebuild measured; migrations 5.x scaffolded (#110, #28); what cannot move yet (#93); every other 5.x entry point from design/schemakit-api.md section 13 as native, later with its issue, or dropped; and the measured limits (#105, NU1608). #98 is fixed, so its line is gone. Every C# sample compiles against the shipped assemblies (DocumentationSampleTests), and every link resolves (DocumentationLinkTests).
Not in it yet, and still owed here: the test that fails when a 5.x entry point has no entry; the native forms' DDL against 5.x (#3); the advice to move from 5.6.x run against a real snapshot of 5.4 or earlier.
From #82 and #85, 2026-11-12: a 5.x declaration on a derived type that shares its table with its base type is refused. The guide has to say: move it to the base type, which gives the same DDL and costs no operations. A declaration that reads a column only the derived type has cannot be moved until #85 is built: move the property to the base type, or map the derived type to a table of its own.
Problem
A 5.x consumer who moves to EF Core 11 makes two changes at once: what EF Core 11 and Npgsql 11 now do natively goes to the native API (#3), and the rest goes to SchemaKit's new API. Several issues already lean on a migration guide that says which is which (#3, #10, the plan's sections 5 and 6, design/schemakit-api.md section 10), but no issue owns the guide, so nothing holds it to a release.
Without it a consumer cannot try a preview: the API is new, nothing is kept as [Obsolete], and the compiler only says what is gone.
Change
One document, shipped with the packages' documentation, with one entry per 5.x usage. The inventory is the table of 5.x signatures in design/schemakit-api.md (section 10, as of 5.4.1, to be brought up to the last 5.x release). Each entry has:
- the 5.x call, as a consumer wrote it
- where it goes: native EF Core 11 / Npgsql 11, SchemaKit, or both where the guide offers a choice (column-only indexes, SchemaKit: leave out what EF Core 11 and Npgsql 11 do natively; keep what stays unique #3)
- the code after the move
- what the next
migrations addproduces: nothing, or exactly the operations listed (SchemaKit: moving from EFCore.ComplexIndexes 5.x adds no migration, or exactly the one the guide documents #10 tests this) - what has no path, and why (Npgsql's own
NpgsqlRange<T>[]multirange underWithPeriod(), for one)
Beside the entries:
- the wiring:
UseSchemaKit()in place of the 5.x registration and its design-time reference, and what the guards say when a step is missed (SchemaKit: the wiring guards, so a missing or displaced UseSchemaKit() fails loudly #8) - the snapshot: the 5.x format is read, and what the first migration after the move looks like (SchemaKit: snapshot format v2 and CodoMetis: annotation keys ship in 11.0.0; the 5.x format is read forever (D11) #9, Spike C: a 5.x snapshot hands over with zero operations #18)
- migrations scaffolded by 5.x still apply to a fresh database (Legacy replay: migrations scaffolded by 5.x apply to a fresh database #28)
- lambdas: what the translator accepts and refuses compared with 5.x (Lambda translator: the 5.x port with null compensation, templates and the parity sweep #26, Analyzer: the translator's refusals as build errors, in 11.0.0 #31)
Sequence
preview.1: a first cut that covers whatpreview.1ships (SchemaKit 11.0.0-preview.1: the first slice of the new API, on EF Core 11 / Npgsql 11 under the new ids #2): the wiring, exclusion constraints and their lambda filters. Every 5.x usage is listed, and one that has no SchemaKit form yet says so and names the preview it comes with.- Each later preview fills in the entries of what it adds.
rc.1: complete (plan, section 6).
Done when
- Every public 5.x entry point has an entry, held by a test that fails when one is missing.
- Every "after" snippet compiles against the shipping packages.
- Each entry's stated migration is the one SchemaKit: moving from EFCore.ComplexIndexes 5.x adds no migration, or exactly the one the guide documents #10 measures.
- The 11.0.0 changelog's list of what can break you links to it.
Activity
CaffeinatedCoder commentedon Nov 14, 2026
From the pre-preview sweep of
main@ 948496a, 2026-11-14. What the first cut has to say, each measured:WithExpressionof 5.x moves with no operations only when its text is the text the new declaration renders. 5.x has no lambda for an expression element.WithExpression("lower(\"code\")", "=")againstpg.Equal(x => x.Code.ToLower())on a lower-case column, which Npgsql writes bare aslower(code), is one rebuild. With a capital in the column both are quoted and the diff is empty (the fixture's case).Sql.Raw<T>in an element (PgExclusion: exclusion constraints end to end #25) is what will keep the text as it was.migrations removeof a 5.x migration fails.NU1608from Npgsql's exact pin, and EF Core 11.0.0 is what loads. Npgsql's, not SchemaKit's; one line under the platform.UseNpgsql(cs, o => o.UseSchemaKit()), notUseNpgsql(cs).UseSchemaKit(), which compiles and is refused at the first diff (the table on Consumer smoke test: remove each registration in turn #34).