Skip to content

Spike C: a 5.x snapshot hands over with zero operations #18

Open

Description

@CaffeinatedCoder

2026-11-12, from #93: test/Fixtures/ComplexIndexes5x/ScaffoldedOtherKinds now holds a temporal constraint scaffolded by the published 5.6.0 (Tariff, CustomTemporal:Constraints, UNIQUE ("ProductId", "Valid" WITHOUT OVERLAPS)). Until the handover matcher exists, a snapshot that holds one is refused at migrations add; a reader registered for the annotation takes it off that guard. The published 5.6.0 has no temporal foreign key.


2026-11-12, the exclusion half is #92 (PR #94). The fixture is test/Fixtures/ComplexIndexes5x: a net10.0 consumer of the published 5.6.0, scaffolded outside the repository, checked in as scaffolded. Its snapshot against the same model declared with SchemaKit is no operations, and the catalog agrees on PostgreSQL 16 and 18. The handover needed no fact the snapshot does not hold. Open here: the temporal constraint moved to WithoutOverlaps(), the handover matcher, and the refusal of a mutable period. The fixture model has no temporal constraint yet; it is added to Generator/Model.cs and regenerated.


Early proof for #10, before preview.1 (plan, section 3.13).

Question

Given a real snapshot scaffolded by the published 5.x packages, with exclusion constraints and one temporal constraint, does a model that declares the same through SchemaKit and Npgsql's native WithoutOverlaps() diff to no operations?

It fails when

The handover needs a fact the snapshot does not hold. Then the guide documents exactly one migration for that case, which #10 allows.

Done when

The two cases are fixtures with their diffs, and a mismatching temporal constraint (a mutable period) is shown to be refused, not dropped.

Activity

  1. added this to the 11.0.0 milestone on Nov 11, 2026
  2. added
    tests
    package/postgresql
    area/migrations
    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/postgresqltests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions