What should a PR check prove before a schema backfill is allowed to run?
A migration check should read old data, apply the change, verify the new behaviour and record which recovery path was exercised. A fresh empty database covers only the easiest case.
Work through the decision
A fixture containing only new rows will miss the customers whose old rows have no value.
| Step | Evidence to keep |
|---|---|
| Seed historical shapes | Include absent, false and true values. |
| Apply the migration | Record counts and unchanged business invariants. |
| Verify recovery | Restore or roll forward using an isolated copy and compare outcomes. |
What changes the decision
For a large change, test a representative batch and a partially completed backfill as separate states. Keep the migrated revision and dataset identifiers together.