The migration script failed at 02:17. The error log was clear: missing column.
Adding a new column to a database table feels simple until it breaks production. Schema changes demand precision. Slow queries, locked tables, and downtime wait for anyone who treats them as an afterthought. A new column can trigger full table rewrites, blow up indexes, or silently skew reporting.
Plan the change before touching the migration tool. Decide if the new column allows nulls, set defaults wisely, and understand how it interacts with existing rows. For large tables, consider online schema change tools or phased rollouts. Test with production-sized data. Measure query plans before and after.
Name the new column with clarity. Avoid abbreviations that will confuse future maintainers. Document its purpose in the schema and version control. Make it part of the contract between database and application code.