The migration failed on the last step. The logs said it plainly: missing column.
Adding a new column should be simple. In practice, it can derail a release if handled without precision. Schema changes affect live data, query performance, and application stability. A sloppy approach can lock tables, block writes, or cause silent data corruption.
To add a new column without downtime, start with a clear migration plan. Use ALTER TABLE with care. On large datasets, it can trigger full table rewrites. Some databases offer ADD COLUMN as an instant metadata-only change, but others require a full rebuild. Verify behavior in staging with production-scale data.
Always set defaults deliberately. Null values can break code paths expecting structured data. When backfilling, run updates in small batches to avoid locking issues and to distribute load evenly. Consider creating the new column as nullable, populate data in background jobs, then enforce NOT NULL constraints when complete.