Testing guides

How to test a database migration against existing data

A reminder preference moves from an implied default to an explicit field.

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.

Steps and evidence for the reviewer
StepEvidence to keep
Seed historical shapesInclude absent, false and true values.
Apply the migrationRecord counts and unchanged business invariants.
Verify recoveryRestore 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.

Primary documentation

Your next release starts here

Keep building.
Put testing to work.

Give Cue April your next testing challenge. Let your AI quality lead coordinate the checks, so your team can focus on what comes next.

Create account

Create your account, connect a repository and review your proposed setup before approving a run.