# Database schema default migration test report

> See how a local migration fixture affects existing rows and newly created records. Inspect the expected defaults and the regression a fresh database misses.

Source: https://cueapril.com/reports/schema-default-migration
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Will new and pre-migration accounts follow the same intended rule?

The original implementation failed the “Legacy row” check. Expected true and observed false. The corrected implementation met both expectations on the same inputs.

Email reminders stay enabled for legacy rows without an explicit preference. Compare two versions of a small, runnable fixture. The inputs, expected values and recorded results are public.

## What the control case missed

A newly created row with an explicit false value still behaves as expected. An older row with an absent field should retain the previous default of true, which a Boolean coercion silently reverses.

Observed values from the two implementations

| Check | Expected | Original | Corrected |
| --- | --- | --- | --- |
| Explicit opt-out | false | false | false |
| Legacy row | true | false | true |

## What to check before merging

Seed the migration suite with legacy records, then check explicit false and missing values separately. A new-user test alone cannot detect this regression in the existing customer population.

## Reproduce the recorded result

Download the [Node.js fixture](/examples/qa-regressions/run.mjs) and run node run.mjs schema-default-migration with Node.js 24. Compare the printed JSON with the [recorded results](/examples/qa-regressions/results.json). This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.

## Primary documentation

- [Runnable synthetic regression fixtures](/examples/qa-regressions/run.mjs)
- [Recorded output for all twelve fixtures](/examples/qa-regressions/results.json)

By Cue April. Updated 2026-12-01.

## Related

- [Worked test reports](https://cueapril.com/reports): Replay a real mobile pricing defect from a Cue April pull request. Explore runnable reports for checkout, search, data migrations and other regressions.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
