Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/store-sqlite / / Migration
Interface: Migration
Defined in: packages/store-sqlite/src/migrations/registry.ts:20
Stable
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.