Adding a new column sounds simple. In practice, it can trigger downtime, data loss, or deadlocks if you do it without a plan. The right approach starts with understanding how your database handles schema changes in production.
Use transactional DDL when your database supports it. Postgres can add a new column with a default safely if you use ADD COLUMN ... DEFAULT ... in newer versions, but older versions rewrite the table. That rewrite locks the table and blocks writes. MySQL and MariaDB may require ALGORITHM=INPLACE or ALGORITHM=INSTANT to avoid a full copy and downtime. MongoDB schema migrations require application-level handling for a new field in existing documents.
Plan for forward and backward compatibility. Deploy the new column before code that writes to it. This keeps old code functional during rollout. Backfill data in batches to avoid long locks and high replication lag. Monitor query execution times and replica health while the backfill runs.