Adding a new column is one of the most common schema changes in production. It looks simple. It’s not. On a live system, a careless ALTER TABLE can lock writes, stall queries, or trigger cascading performance hits. For high-traffic databases, even a few seconds of lock time can cause real damage.
The first rule: know your database engine. In MySQL, ALTER TABLE ADD COLUMN can be blocking unless you use ONLINE DDL in supported versions. In PostgreSQL, adding a nullable column with a default is fast, but adding it with a NOT NULL and default value can rewrite the whole table. In distributed datastores like Cassandra, schema changes propagate differently, with gossip and schema agreement phases to consider.
The second rule: plan for safe rollouts. Use feature flags to separate schema migration from application changes. Apply the migration out of the critical path. Backfill data in batches rather than in a single transaction. Validate disk space impacts and replication lag before the change.