The build had failed again. The logs pointed to a missing column in the production database—one that existed locally but never made it through staging. The fix was simple: add a new column. Getting it right, every time, is not.
A new column in a database table can be a safe, atomic migration or it can break critical paths if handled without precision. Schema changes touch running systems. Code and data must stay in sync. A column addition must be tested across environments, rolled out without downtime, and fully integrated into read and write paths.
Best practice begins with defining the new column with the exact type, constraints, and default values required for production. Avoid nullability changes later. Use migrations that are idempotent and reversible. Run the change on staging with realistic data before touching production.