@vttforge/core / MigrationRunnerOptions
Interface: MigrationRunnerOptions
Properties
compatibleVersion?
readonlyoptionalcompatibleVersion?:string
Compatibility floor: worlds with a stored schemaVersion strictly older than this throw VttfError VTTF-0005 instead of running migrations. Mirrors the flags.<systemId>.compatibleMigrationVersion declaration in system.json.
isNewerVersion?
readonlyoptionalisNewerVersion?: (next,current) =>boolean
Override the semver comparator. Defaults to foundry.utils.isNewerVersion resolved at call time. Test-only injection.
Parameters
next
string
current
string
Returns
boolean
logger?
readonlyoptionallogger?:MigrationLogger
Override the logger. Defaults to a console + ui.notifications adapter. Test-only injection.
migrations
readonlymigrations: readonlyMigration[]
Migrations in ascending version order. Empty array is allowed (run() is a no-op then).
settingKey?
readonlyoptionalsettingKey?:string
Settings key under systemId. Defaults to 'schemaVersion'.
settings?
readonlyoptionalsettings?:GameSettingsApi
Override game.settings. Defaults to globalThis.game.settings resolved at call time. Test-only injection.
systemId
readonlysystemId:string
System id, used as the game.settings namespace.