Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/store-sqlite / / Migration
Interface: Migration
Defined in: packages/store-sqlite/src/migrations/registry.ts:19
Single source of truth for the bundled migration SQL files. The runner loads them in numeric order, applies them inside a single transaction, and records the applied version in schema_migrations.
Bundled migrations live alongside this file (*.sql) and are read at package load time. The file name format is mandatory: NNN-<slug>.sql, where NNN is a zero-padded sequence number.
Future packages register additional migrations by appending entries to registerMigration during their package initialization.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
name | readonly | string | Human-readable slug, e.g. 'memory'. | packages/store-sqlite/src/migrations/registry.ts:23 |
owner | readonly | string | Owning module — surfaced in error messages. | packages/store-sqlite/src/migrations/registry.ts:27 |
sql | readonly | string | Raw SQL body (multi-statement). | packages/store-sqlite/src/migrations/registry.ts:25 |
version | readonly | string | Zero-padded sequence number — must be globally unique. | packages/store-sqlite/src/migrations/registry.ts:21 |