Skip to content

SchemaKit: moving from EFCore.ComplexIndexes 5.x adds no migration, or exactly the one the guide documents #10

Open

Description

@CaffeinatedCoder

Decided 2026-11-11 (plan, section 3.13). The fixtures are generated by the published 5.x packages: a net10.0 project restores EFCore.ComplexIndexes 5.6.x from nuget.org, scaffolds real snapshots and migrations, and the results are checked in. The move is computed by a one-way handover matcher: a 5.x descriptor and an operation of the inner differ that are equal in full physical terms cancel out. A mismatch never discards: a 5.x temporal constraint the native key cannot represent is a refusal with the documented path.


Problem

The spin-off (#1) asks every consumer to make two changes when they move to EF Core 11: swap EFCore.ComplexIndexes 5.x for SchemaKit, and move what EF Core 11 and Npgsql 11 now do natively to the native API (#3). If the swap changes an index or constraint name, or leaves behind an annotation the new differ doesn't read, the consumer's next migration drops and recreates indexes and constraints on production tables. It does so without any error, which is exactly what the silent label is for.

This test is what makes the spin-off acceptable.

Change

One end-to-end test per feature:

  1. Start from a model and a snapshot generated by EFCore.ComplexIndexes 5.x, checked in.
  2. Rewrite the same model for SchemaKit as the migration guide says: native HasIndex for complex-type indexes, native WithoutOverlaps/WithPeriod wherever SchemaKit: leave out what EF Core 11 and Npgsql 11 do natively; keep what stays unique #3 leaves temporal constraints to the platform, SchemaKit for the rest.
  3. Run migrations add. It must produce no operations, or exactly the ones the migration guide lists.

Run it on PostgreSQL 16 and 18 and on SQL Server.

Done when

  • Every feature 5.x ships has its test.
  • The migration guide's "EFCore.ComplexIndexes 5.x → SchemaKit" section is checked against these tests.
  • It ships before 11.0.0.

Activity

  1. added this to the 11.0.0 milestone on Oct 19, 2026
  2. added
    tests
    package/core
    package/postgresql
    package/sqlserver
    area/migrations
    on Oct 19, 2026
  3. added
    tests
    package/core
    package/postgresql
    package/sqlserver
    area/migrations
    on Nov 11, 2026
  4. added this to the 11.0.0 milestone on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/migrationspackage/corepackage/postgresqlpackage/sqlservertests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions