Interface: TransitionOptions
Defined in: migrate.ts:418
Options for MigrationStateManager.transition.
Properties
actor?
optionalactor?:string
Defined in: migrate.ts:428
Who made the change. Default system.
algorithm
algorithm:
string
Defined in: migrate.ts:426
Key algorithm after the transition.
allowBackward?
optionalallowBackward?:boolean
Defined in: migrate.ts:434
Must be true to permit a backward transition.
fromState
fromState:
MigrationState
Defined in: migrate.ts:422
Expected current state: an optimistic-concurrency check against stale callers.
keyId
keyId:
string
Defined in: migrate.ts:420
The key to move; a non-empty string.
metadata?
optionalmetadata?:Record<string,unknown>
Defined in: migrate.ts:432
Free-form JSON-serializable details stored in the record. Default empty.
reason?
optionalreason?:string
Defined in: migrate.ts:430
Required (non-empty) for backward transitions.
toState
toState:
MigrationState
Defined in: migrate.ts:424
The state to move to.