The schema updated without errors, but the missing new column broke half the API.
Adding a new column sounds routine. It is not. In high-load systems, the way you add it can decide whether the next hour is calm or chaos. The difference is in precision. Schema changes touch the bedrock of your data model. A single mistake can lock tables, burn CPU, or split data into inconsistent states.
When planning a new column in SQL, define the exact type, nullability, and default. Avoid defaults that force a full table rewrite in production. For PostgreSQL, ADD COLUMN with a constant default rewrites the table. Instead, add a nullable column first, backfill in controlled batches, then enforce constraints. In MySQL, watch out for storage engine behavior—ALTER TABLE may copy the entire table for even small changes.
Index strategy matters. Adding an indexed new column during peak traffic can block queries or stall replication. Create the column first, then add the index concurrently or online if your database supports it. Consider query plans that will hit the column immediately after release.