Adding a new column is a small change with outsized impact. It shifts data models, changes indexes, and can ripple through application logic. In production systems, a poorly planned schema change can lock tables, block writes, or trigger downtime. Yet teams still treat SQL ALTER TABLE ADD COLUMN as trivial, and that is where risk hides.
Before adding a new column, check the constraints of your database engine. In PostgreSQL, adding a column with a default value rewrites the table. In MySQL, it may lock the table if you alter data type or position. Test the DDL on realistic volumes, measure the migration time, and verify how your ORM handles the schema change. Without this, you can end up with silent failures or partial writes.
Always define nullability and defaults explicitly. A NULL allowed column behaves differently in queries and indexes than one with NOT NULL DEFAULT. Consider the impact on query plans: a new column can change index selectivity or require new composite indexes. Apply schema changes with backward compatibility in mind so that old and new application versions can run during deployment.