The migration failed at 2 a.m., and the logs pointed to one line: ALTER TABLE users ADD COLUMN status VARCHAR(20);. Adding a new column can be simple—or it can break production with a single misstep.
A new column changes the shape of your data. Done right, it extends capability. Done wrong, it corrupts or slows the entire system. In most relational databases, you can add a column with ALTER TABLE ... ADD COLUMN. But the impact depends on data size, indexes, constraints, and how your queries use that table.
On small datasets, adding a new column is instantaneous. On large ones, it can lock the table for minutes or hours. MySQL, PostgreSQL, and SQL Server handle schema changes differently. New column defaults, especially with NOT NULL, can force a full table rewrite. That can spike I/O and block concurrent reads and writes.