A new column is one of the most frequent schema changes in any database. It sounds simple, but at scale it can break production. Adding it the wrong way can lock tables, block writes, or cause replication lag. The safe way is to treat it as a migration. Plan it. Test it. Then execute with zero disruption.
Start in staging. Create the new column with a default that doesn’t force a full-table rewrite. In PostgreSQL, use ALTER TABLE ... ADD COLUMN ... without a default, then backfill in batches. In MySQL, on large tables, use pt-online-schema-change or native online DDL. Make sure your ORM or migration tool supports non-blocking changes.
Add the column without changing existing queries first. Deploy backend changes in two steps: first, code that reads from and writes to the old schema still runs, ignoring the new column. Then, after the column exists and is backfilled, release the code that uses it. This minimizes risk if you need to roll back.