Interface OfflineRegionSchemaMigrationV1

One ordered step of the persisted region-record ladder.

A step is a pure structural rewrite of one stored record. It receives only the record — never a caller's options, never the store — so a migration can neither widen a bound nor reach the network, and it must return a record carrying toVersion's layout.

interface OfflineRegionSchemaMigrationV1 {
    fromVersion: number;
    migrate: ((record: Readonly<Record<string, unknown>>) => Record<string, unknown>);
    toVersion: number;
}

Properties

fromVersion: number
migrate: ((record: Readonly<Record<string, unknown>>) => Record<string, unknown>)
toVersion: number