Adding a new column to a production database sounds simple. It is not. Schema changes carry risk. A single mistake can lock tables, drop data, or block writes. When load is high, even a small DDL change can cascade into downtime.
Before adding a new column, define the change with precision. Choose the right column type. Set sensible defaults. Decide if it allows NULL values. Understand how the new column affects existing queries, indexes, and constraints.
In SQL databases, adding a column can be safe if done incrementally. For large datasets, use online schema changes when available. In PostgreSQL, ALTER TABLE ADD COLUMN with a default can rewrite the table — avoid defaults that force full table locks on large tables. In MySQL, consider ALGORITHM=INPLACE and LOCK=NONE options to reduce impact. No matter the database, test the migration in an environment that mirrors production scale.