The database table was ready, but the feature needed more data. A new column had to be created fast, without downtime, without risk, without breaking production.
A new column changes the shape of your data. In SQL, altering a table to add a column is simple:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
The reality is harder. On large datasets, adding a new column can lock the table, stall queries, and block deployments. In PostgreSQL, ADD COLUMN with a default value rewrites the entire table. On MySQL, an ALTER may require rebuilding indexes.
The best practice is to run schema changes in small, safe steps. Add the column without defaults. Backfill data in batches. Then apply constraints or defaults after the table is updated. This avoids long locks and keeps production responsive.