The query runs, but the data is wrong. You see it. A reporting table misses a metric you need to ship. The fix is simple: add a new column. The problem is, in production, nothing is ever simple.
A NEW COLUMN changes both schema and capability. It alters migrations, indexes, queries, and dependencies. Too often, columns are added without thinking through impact. The result is slow queries, dead data, or breaking jobs in the background.
The right process starts with design. Define the purpose of the new column. Is it storing raw facts, computed values, or a reference to another table? Decide data type early. Switching from INT to BIGINT later is painful. Consider storage costs and indexing strategy before you commit.
Next, handle migrations with care. In SQL, ALTER TABLE ADD COLUMN is straightforward, but production tables with millions of rows can lock writes and reads. Use online schema changes when needed. Tools like pt-online-schema-change or native database features prevent downtime. Keep deployment steps reversible.