Schema changes can shift from a single-line command to hours of downtime if handled poorly. Adding a new column in production is more than a syntax choice. It’s an architectural decision. Done wrong, it locks tables, blocks writes, and burns your error budget. Done right, it ships without impact and leaves your system stronger.
When adding a new column, start with your migration plan. Decide if this is a default value, nullable field, or computed column. For large tables, use an online schema change tool or perform a phased migration. First, add the column without constraints. Then backfill it in small, controlled batches. Finally, apply indexes or constraints once the load is minimal.
Data type is not an afterthought. Pick the smallest type that can hold the data without risk. This reduces storage and improves query performance. Avoid altering the column later, since that can trigger full-table rewrites.