egon-orm-workspace / egon-orm/migration / MigrationStatus
Interface: MigrationStatus ​
Defined in: core/src/migration/migrator.ts:130
The state of one migration: up (applied), down (pending), or missing (recorded as applied, but no migration with that version is known; it has no name then).
claimed is not a migration: on SQLite, a runner records a claim (version -1, no name) while it runs a migration without a transaction. Outside a run, a claim means a runner stopped in the middle of such a migration: every later run waits for it until it is deleted (check what the migration did first).
Example ​
ts
const row: MigrationStatus = { version: 20261012093000, name: "create_users", state: "up" };Properties ​
name ​
ts
readonly name: string | undefined;Defined in: core/src/migration/migrator.ts:132
state ​
ts
readonly state: "up" | "down" | "missing" | "claimed";Defined in: core/src/migration/migrator.ts:133
version ​
ts
readonly version: number;Defined in: core/src/migration/migrator.ts:131

