A new column changes the shape of your data model. In SQL, this means altering the schema. Careless changes here can cause downtime, lock tables, or introduce subtle bugs when queries break. Before adding a column, verify that the schema migration will run safely in production. This often means using a migration tool that supports locks, batching, and rollback.
In PostgreSQL, ALTER TABLE ADD COLUMN is straightforward, but its impact depends on defaults and constraints. A column added with a constant default can rewrite the entire table, blocking writes for a long time. To avoid this, add it without a default, backfill in controlled batches, and then set the default in a separate step. In MySQL, watch for metadata locks that can block concurrent transactions.
In application code, the new column should be optional at first. Deploy code that reads nulls without failing. Only once the backfill is complete and the default is set should you enforce NOT NULL. This staged rollout prevents race conditions during deployment.