A migration repairs state that an older release left behind, such as a retired key in
settings.json or an orphaned default. It ships in exactly one stable release and is then deleted,
so the codebase never carries a history of its past formats.
- Every migration lives in
Tinycast/Migrations/, one file and one<Subject>Migrationtype each. Its call sites name that type, so deleting the file fails the build at every one of them. - One stable release, then gone.
Scripts/check-migrations.shfailslint.shand the Release workflow once a stable tag (vX.Y.Z) contains the commit that added the file. Beta tags do not count: the beta channel runs it on the way to that stable release. - Missing it must be harmless. A user who skips that release never runs it, so a migration only tidies. A value a later release depends on is never left to one.
- Idempotent and silent. It runs on every launch of its release, does nothing when there is nothing to repair, and reports nothing.
- Every live migration has a row below. The check fails for a file the table does not name.
Write the type in Migrations/ and call it from AppCore.start() before anything reads the state it
repairs. Cover it with a suite of its own, so deleting it removes a whole file and one row in
testing.md. Then add its row here.
When the check fails, delete everything the row lists, then the row.
| Migration | Repairs | Delete with it |
|---|