The logs were clean, but the table needed one more field.
Adding a new column should be simple. Yet in production, nothing is simple. Schema changes lock tables, trigger replication lag, and sometimes cause outages. The wrong ALTER TABLE can take down an entire service.
A new column in SQL is more than a schema tweak. It is a structural contract change across systems, code, and data. You must think about the storage engine, indexes, constraints, and defaults. In Postgres, adding a nullable column without a default is fast. Adding one with a default writes to every row, which can be slow and block transactions. In MySQL, behavior changes between versions. Always check before running the command.
For online migrations, tools like pt-online-schema-change and gh-ost can help. They copy rows to a shadow table, apply your change, and swap at the end. This keeps your application responsive. Still, you must monitor replication delay, disk usage, and app-level behavior.