// The usage store's schema, brought to the shape this version needs (novox/hq ADR 0135): the host runs // this as a run-once step before the version that needs it, with no bus, and does not start that // version if it fails. Migrations are numbered and recorded (store.ts). import { UsageStore } from "../store.js"; const store = UsageStore.fromEnv(); const applied = await store.migrate(); console.log( applied.length > 0 ? `[model-usage] applied migration(s) ${applied.join(", ")}; the usage store's schema is what this version needs` : "[model-usage] the usage store's schema is what this version needs", ); await store.close();