Skip to content

@vttforge/core / Migration

Interface: Migration

Properties

description?

readonly optional description?: string

Optional human-readable description, logged when the migration runs and shown in error messages.


fn

readonly fn: () => void | Promise<void>

The migration body. May be sync or async. Should be idempotent (safe to re-run after partial failure).

Returns

void | Promise<void>


version

readonly version: string

Semver version this migration brings the world to.

MIT licensed.