The logs showed the reason: a missing new column.
Adding a new column to a production database is one of the most common changes in software systems, yet it’s also a common source of downtime, locks, and broken deployments. The operation sounds simple, but in practice it touches schema design, data migration strategy, indexing decisions, and application release timing.
When you add a new column in SQL, the process depends on your database and engine settings. An ALTER TABLE with an ADD COLUMN is straightforward for small tables without strict uptime requirements. On large datasets, it can block reads or writes until completion. This is why most high-traffic systems use online schema changes, background migrations, or zero-downtime techniques.
Plan for defaults. Adding a column with a non-null constraint and a default value can force the database to rewrite the entire table. This is expensive and can stall queries. Safer options are: