The database was running hot, and you needed a new column fast. No meetings. No delays. Just a schema change that works in production without breaking anything.
Adding a new column sounds simple. In practice, it can trigger downtime, lock tables, or cause silent data corruption if you get the migration wrong. The key is to plan the change and run it in a way that matches the scale and uptime requirements of your system.
First, decide the column type. Match it to the data you will store. Choose constraints carefully. Too strict, and backfills fail. Too loose, and you invite data quality problems. Set sensible defaults to keep inserts simple.
Second, think about the migration path. On small tables, an ALTER TABLE ADD COLUMN might be safe. On large and busy tables, this can hold locks long enough to block queries and slow the whole database. Use online schema change tools where possible. Many managed databases now support adding nullable columns instantly.