You need a new column.
Adding a new column should be fast, reliable, and safe. Yet too often it slows deployments, blocks release pipelines, and risks production data. Schema migrations are powerful but unforgiving. One bad change can lock tables, cascade errors, or result in downtime.
Before adding a new column, confirm data type, default value, and nullability. Plan for the effect on indexes. In systems with billions of rows, the wrong defaults can trigger massive rewrites. Always test migrations in staging with production-scale datasets. Measure the execution time. Watch for query plan changes.
For live systems, use additive changes. Create the new column as nullable. Backfill in controlled batches. Then make constraints explicit and update application code to write to it. Avoid altering large tables in a single transaction. Tools like pt-online-schema-change or native database partition strategies reduce locking risk during the addition.