The migration froze halfway through. A missing column killed the deployment.
Adding a new column sounds simple, but when data lives in production and uptime matters, this change can trigger cascading failures. Schema changes must be predictable, fast, and reversible. A single misstep can lock tables, block writes, or corrupt rows.
A new column can serve many purposes: storing computed values, enabling new features, or tracking analytics. The method you choose to add it—whether online DDL, zero-downtime migration tools, or batched schema changes—determines whether the rollout is safe.
For large datasets, adding a new column with a default value can rewrite the entire table. This is costly. Use NULL defaults when possible and backfill in controlled batches. Many databases now support ADD COLUMN operations that are metadata-only for certain cases; knowing these capabilities reduces risk.