The schema was perfect until the product team asked for one more field. You need a new column, and you need it fast.
Adding a new column is one of the most common changes in a database. Done wrong, it can lock tables, stall queries, or crash production. Done right, it can be seamless.
First, decide column type and defaults. An incorrect type choice can force future migrations. Avoid nullability when not essential; it makes indexing and constraints simpler.
Second, plan for deployment. In relational databases like PostgreSQL or MySQL, an ALTER TABLE ADD COLUMN command modifies table structure. For massive datasets, this can lock writes. Use strategies like adding the column without a default, then updating rows in batches. Many platforms now support instant metadata changes, but confirm before relying on them.