Skip to content

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

PropertyModifierTypeDescriptionDefined in
namereadonlystringHuman-readable slug, e.g. 'memory'.packages/store-sqlite/src/migrations/registry.ts:23
ownerreadonlystringOwning module — surfaced in error messages.packages/store-sqlite/src/migrations/registry.ts:27
sqlreadonlystringRaw SQL body (multi-statement).packages/store-sqlite/src/migrations/registry.ts:25
versionreadonlystringZero-padded sequence number — must be globally unique.packages/store-sqlite/src/migrations/registry.ts:21