A model version is a promise about interpretation. If the workshop changes a field’s unit, allowed values, or lifecycle, old records do not become correct merely because the new YAML validates. Migration is the work of relating existing data and behavior to the new definition.
Separate three questions. Can the new document be parsed? Can the database reach the intended structure? Do the resulting records still mean what the application and its users expect? A migration can succeed at the first two and fail at the third.
Begin with a representative copy
Use a disposable database containing representative records, including nulls, boundary values, final states, and historical evidence. A schema-only rehearsal misses the rows that make a change difficult. Keep the old definition and the exact data snapshot used by the rehearsal.
The CLI provides diff and migration commands; inspect their current help before relying on old manuscript flags. A generated SQL plan is an artifact to review. It is not evidence that execution succeeded, that every intended constraint exists afterward, or that all application paths still interpret the result correctly.
Prefer changes with a clear transition period
Adding an optional field can be simpler than making a new field immediately required for every old row. If you need a required value, choose a backfill rule, inspect rows it cannot determine, and only then tighten the constraint. A default is appropriate only when it states a truthful value for those records.
For example, defaulting an old calibration’s reviewedAt to the migration time would falsely imply that a review happened then. The correct representation might be unknown, a separate imported-evidence marker, or a documented historical exception. Technical convenience should not invent business history.
A rename can be a semantic change
Changing offsetMicrounits to offsetMillivolts is not merely a rename if the numeric unit changes. Preserving the stored integer under a new label can silently alter its meaning. Define the conversion, precision, rounding, and records outside the valid conversion range.
A true spelling rename still needs a mechanism that preserves the existing column values and updates references. Examine expressions, relationships, Journey bodies, exported schemas, clients, and reports that use the old name. The data definition is only one consumer of the identifier.
Lifecycle changes require old-state analysis
Removing rejected from an enumeration or state machine can strand existing records. Adding a new review state changes reachability and the assumptions of Journeys that begin in submitted. A previously accepted artifact may need recompilation even when its own source text is unchanged.
Ask how each existing state maps into the new lifecycle. Avoid automatically relabeling historical certification as a new stronger approval status unless the evidence supports that stronger meaning. A model migration can preserve data while deliberately leaving some records under their historical interpretation.
Reversal is another migration
Rolling back an application definition does not necessarily restore dropped data, undo external effects, or reconstruct history. A reverse migration needs its own inputs and loss model. A backup can restore a previous state, but then the operations performed afterward must be reconciled.
Distinguish configuration rollback, schema reversal, data restoration, and business compensation. They can be part of one recovery plan, but they do not perform the same action. Test the recovery you actually intend to use, with the same store and a representative workload.
History features have an adoption boundary
Enabling hash chaining on an existing resource leaves earlier history unchained in the current implementation. That is an honest boundary: the new mechanism starts providing its evidence when it starts running. Record the adoption time and retain the older evidence under its own provenance.
Likewise, adding a policy changes which operations may proceed and can expose routes the current policy implementation deliberately refuses. Include those availability changes in the migration review. A safer authorization model can still require client and operator preparation.
The detailed companion is ADL Migrations in Detail, supported by ADL 17. The recovered POC-05 guide supplies historical examples, whose syntax and behavior should be rechecked before reuse.
Workshop
The workshop introduces a required instrument model number. Some existing serial numbers cannot be matched to a model. Design the staged change, the unresolved-record workflow, and the condition that must hold before requiredness is enabled.