Skip to content

Legacy replay: migrations scaffolded by 5.x apply to a fresh database #28

Open
1 of 1 issue completed

Description

@CaffeinatedCoder

From #40, 2026-11-11: the seam this plugs into exists. SchemaKitSqlGenerator runs every registered IMigrationOperationRewriter over the operation list and hands the inner generator the result in one call. A rewriter returns the operations it does not own as they came, in place. The legacy rewriters of this issue register against that interface.


Part of preview.2. Plan, sections 3.3 and 3.12.

Change

The generator decorator rewrites operations that carry 5.x annotations into SqlOperations and hands the whole list to the inner generator: CustomIndex:IndexParts and the runtime-wiring sentinel, the pre-5.0.2 CustomTemporal:* operations, and on SQLite CustomIndex:AfterTableRebuild with its failing marker. Order, transaction suppression and script options stay the provider's. An owned annotation in an unknown shape is an error, never a pass-through.

Done when

The migrations of the 5.x fixtures (#10) apply to a fresh PostgreSQL 16 and 18 and SQLite database, Up and Down, as script and as bundle, with the catalog the 5.x packages produce.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added this to the 11.0.0 milestone on Nov 11, 2026
  2. added
    enhancement
    package/core
    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/migrationsenhancementpackage/corepackage/postgresql

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions