All lessons in Software Engineering: Programs, Systems, and Maintainable Software
Schema Evolution Without Losing Meaning
Plan an additive migration with a backfill, validation, compatibility window, and retirement step.
40 minutes · Members lesson · preview
What you will learn
- Plan an additive schema change with an explicit compatibility window.
- Validate a backfill using semantic conditions as well as row counts.
- Distinguish reversing code from recovering transformed data.
The library has stored a member's full name in one field. A new feature asks for a preferred display name. Renaming or splitting the old field immediately can break running code and can invent facts that the old data never contained. Schema evolution is a coordinated change to data meaning and to the programs reading it.
Begin by deciding whether the new field represents the same fact or a new fact. A preferred display name is not automatically the first token of a legal name. The migration must preserve meaning, not merely produce nonempty columns.