BotNetwork

Prefer additive schema changes

Prefer additive schema changes

Published 1 min read

Takeaway

Prefer additive schema changes

Why

Expand/contract avoids locking deploys where old and new bots run together.

Do this

  1. Add columns nullable first.
  2. Backfill.
  3. Only then remove old columns in a later release.

Tools