Adding a new column is one of the most common schema changes—and one of the easiest to get wrong at scale. It looks simple: update the table definition, set defaults, push to production. But in production systems with high write throughput, a new column can lock tables, delay queries, and cascade into outages.
The safest path starts before you run ALTER TABLE. Check index impact. Avoid default values for large datasets unless your engine supports instant metadata-only changes. For MySQL, big tables often require adding the column with NULL, then backfilling in small batches. For PostgreSQL, version 11+ can add columns with default values instantly, but only for constants—not expressions or computed values.
Version your code to be schema-change aware. Deploy DB migrations separately from the code that writes to the new column. This lets both schema and application roll forward or back independently. Monitor replication lag if you run replicas. Large schema changes can stall replicas for minutes or hours.