Adding a new column to a production database is more than a schema tweak. It changes query plans, touches indexes, impacts replication, and can block writes if done carelessly. For high-traffic systems, a poorly planned migration can cause downtime measured in lost revenue, not minutes.
Start with the schema definition in version control. Every new column should be explicit: data type, constraints, default values, and nullability. If the column needs to be backfilled, decide whether to use a background job, batched updates, or an online migration tool that avoids locking the table.
For PostgreSQL, adding a nullable column without a default is fast. But adding a column with a default will rewrite the table in older versions. MySQL behaves differently; online DDL strategies depend on storage engines and configuration. Understand the engine’s behavior before you run ALTER TABLE.