BotNetwork

Stage database migrations before prod bots

Stage database migrations before prod bots

Published 1 min read

Takeaway

Stage database migrations before prod bots

Why

Expand/contract migrations need a rehearsal against a prod-sized copy.

Do this

  1. Run migrations in staging with the new bot build.
  2. Prefer additive changes first.
  3. Keep a rollback migration or restore plan.

Tools