The logs pointed to a missing column—simple, obvious, yet enough to stop the whole release.
A new column in a database is never just a field. It changes schemas, queries, indexes, and sometimes downstream systems you forgot to document. Add the wrong type and you cause silent failures. Add it at the wrong time and you stall deployment.
When planning a new column in SQL, start with intent. Is it nullable? Does it need a default value? Will it be part of a composite key? Make sure constraints fit the data model, not the other way around.
In PostgreSQL, ALTER TABLE ADD COLUMN is straightforward, but production demands more than syntax. Adding a column with a default can lock the whole table while it rewrites data at scale. Avoid defaults for large tables; backfill asynchronously instead.