Adding a new column to a production database is not a small task. It touches performance, reliability, and consistency. If it goes wrong, downtime follows. This is how to do it right.
First, define the exact purpose of the new column. Nail the name, type, and nullability before writing any migration. Changes later increase risk. For SQL databases, run it in a migration file that can be reversed. Keep migrations additive, not destructive, until the feature is complete.
Add the new column without dropping or renaming existing ones in the same step. In Postgres and MySQL, an ALTER TABLE for adding a column can lock the table. On large datasets, run it during off-peak hours or use online schema change tools like pt-online-schema-change or gh-ost.