The table was broken. Data sat in the wrong place, hiding meaning. You opened the schema and knew exactly what to do: add a new column.
A new column changes structure. It updates how data flows, how queries run, and how teams think about their models. This is more than typing ALTER TABLE. It is about designing for speed, safety, and clarity.
When adding a new column in production, start with the schema definition. In SQL, this usually means:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
Always define the type and constraints up front. Nullability, defaults, and indexes are not afterthoughts. They decide how this new column behaves under load.
Plan for data backfill. If the column must hold historical data, script the migration with batches. Avoid full-table writes that block traffic. Use transaction-safe commands where possible.