BotNetwork

Expand/contract migrations for bots

add nullable columns first; remove later after dual-write window

Guide1 min readUpdated

Why it matters

Add nullable columns first; remove later after dual-write window.

Practical steps

  1. Describe the deploy surface for devops migration expand contract (process, env, healthcheck, rollback).
  2. Implement add nullable columns first; remove later after dual-write window behind a feature flag or canary when risk is high.
  3. Emit structured logs/metrics that show devops migration expand contract succeeding or failing in staging.
  4. Automate a smoke test that hits devops migration expand contract after each deploy.
  5. 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.

Related comparisons and tools