Why it matters
Add nullable columns first; remove later after dual-write window.
Practical steps
- Describe the deploy surface for devops migration expand contract (process, env, healthcheck, rollback).
- Implement add nullable columns first; remove later after dual-write window behind a feature flag or canary when risk is high.
- Emit structured logs/metrics that show devops migration expand contract succeeding or failing in staging.
- Automate a smoke test that hits devops migration expand contract after each deploy.
- Write a one-page runbook: start, stop, rollback, and who to page.
Watch out for
- Copy-pasting outdated snippets for devops migration expand contract without re-reading current official docs.
- Shipping devops migration expand contract to production without a staging rehearsal and a documented rollback.