When you add a new column to a table, you change the shape of your data model. Done right, it unlocks new features fast. Done wrong, it locks up queries, corrupts indexes, and sends error logs through the roof. Precision matters.
Start with your schema. Use an ALTER TABLE statement in SQL, or the equivalent migration tool in your stack. Always define the data type, default values, and nullability before the change runs. If the column needs an index, think about whether to add it in the same migration or in a separate one to avoid table-level locks.
For large tables, online schema changes reduce downtime. MySQL offers ALGORITHM=INPLACE and LOCK=NONE. PostgreSQL supports adding a column instantly if it has a default of NULL. If you must backfill data, batch it in small chunks to keep write latency stable.