The build was failing, and the logs pointed to one thing: a missing column.
A new column sounds simple. In practice, it cuts through tables, queries, indexes, and migrations. The cost of getting it wrong is downtime, broken integrations, and silent data corruption. Adding it right means understanding your database schema and the chain of code depending on it.
When you add a new column, start with the schema change in version control. Never run ad hoc ALTER TABLE commands in production without tested migrations. Use explicit types. Avoid NULL defaults unless the value is truly optional. For high-traffic tables, plan for lock behavior—many relational databases will block writes during the schema update.
Backfill data in controlled batches to prevent load spikes. Update ORM models and query builders in sync with the migration. Add tests that force the presence of the new column in query results. Check every analytics query, API endpoint, and reporting job that reads from the table.