@vttforge/core / Migration
Interface: Migration ​
Properties ​
description? ​
readonlyoptionaldescription?:string
Optional human-readable description, logged when the migration runs and shown in error messages.
fn ​
readonlyfn: () =>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 ​
readonlyversion:string
Semver version this migration brings the world to.