Takeaway
Stage database migrations before prod bots
Why
Expand/contract migrations need a rehearsal against a prod-sized copy.
Do this
- Run migrations in staging with the new bot build.
- Prefer additive changes first.
- Keep a rollback migration or restore plan.