Adding a new column sounds simple until production traffic makes it dangerous. Schema changes are not just SQL commands; they are operations that can lock tables, block writes, or cause downtime if executed carelessly. Under load, a poorly planned ALTER TABLE ADD COLUMN can freeze everything.
Start with the goal. Define exactly what data the new column will store, its type, and defaults. Keep defaults lightweight; heavy computations mean heavier migrations. If the column is nullable, introduce it with no default first—then backfill in controlled batches.
Sequence your deployment. First, update your application code to handle the new column gracefully without relying on its presence. Ship that change. Next, run the schema migration during a low-traffic window or with an online migration tool. Test queries against staging with production-scale data before touching the real thing.