The deployment froze. A missing field broke the build, and a hotfix needed a database change—fast.
Adding a new column sounds simple. In production, it tests the limits of your release process. Schema changes can lock tables, stall writes, and cause downtime if done carelessly. The real work is making a new column appear without slowing a single query or breaking an API.
First, design the column. Decide the data type, constraints, defaults, and nullability. Document what will consume it. A change that seems internal today often powers a critical feature tomorrow.
Second, stage the migration. Run an ALTER TABLE on a replica or shadow table to measure impact. If the database engine performs a full table rewrite, consider online schema change tools. MySQL has gh-ost and pt-online-schema-change; Postgres can add some columns instantly but not all.