Adding a new column sounds trivial, but mistakes here kill uptime. Schema changes touch live data, indexes, and query plans. They affect read and write performance, break downstream jobs, and, if timed poorly, block the entire release.
Before you add a new column, define the exact schema change. Choose the correct data type. Set defaults or allow nulls. Avoid altering large tables without batching. Plan for replication lag and verify how storage engines handle column order. Test that your ORM migrations generate the exact SQL you expect.
Use tools that can apply schema changes with minimal locking. In PostgreSQL, adding a nullable column without a default is fast. Adding a column with a non-null default rewrites the whole table. In MySQL, certain ALTER TABLE operations still trigger full copies. Know your engine’s behavior before running in production.