A new column in a database appears simple. One command in SQL:
ALTER TABLE orders ADD COLUMN delivery_date TIMESTAMP;
But under the surface, the consequences are heavy. Adding a column changes schema. Schema changes lock tables. Locks block writes. On large datasets, that can mean downtime, deadlocks, or even stalled deployments.
Choosing the right migration strategy is the difference between a safe rollout and a late-night incident. For small tables, a direct ALTER TABLE is fine. For large ones, use online schema change tools. In MySQL, pt-online-schema-change or gh-ost avoid locking traffic. In Postgres, ALTER TABLE ADD COLUMN is fast if it has no default value, but adding a non-null column with a default rewrites the whole table. That can take minutes or hours.