Interface: MigrationGuard
Defined in: Data/Migration/MigrationTypes.ts:25
A guard evaluated immediately before its statement runs. If the condition holds, the statement is skipped rather than executed.
These exist because SQLite has neither ADD COLUMN IF NOT EXISTS nor any way
to drop a CHECK constraint, and because a database may arrive at a migration
already partly advanced by the older hard-coded migrator.
Properties
column?
optionalcolumn?:string
Defined in: Data/Migration/MigrationTypes.ts:30
Column the guard inspects; only set for the column-* kinds.
kind
kind:
"table-exists"|"table-missing"|"column-exists"|"column-missing"
Defined in: Data/Migration/MigrationTypes.ts:26
table
table:
string
Defined in: Data/Migration/MigrationTypes.ts:28
Table the guard inspects.