The error appeared after deployment. One new column in the database, and the API refused to start.
A new column seems simple. Add it to the table. Deploy. Done. But in production systems, nothing is that simple. The new column is both a schema change and a contract change. Applications depend on the shape of the data. A column added in the wrong way can break queries, downstream services, or data pipelines.
Before adding a new column, first audit how the table is used. Check ORM models, raw SQL queries, and API serializers. Confirm that adding the column will not cause unexpected SELECT * behavior or overwrite logic where default values matter.
In relational databases like PostgreSQL or MySQL, adding a nullable column with no default can be cheap. Adding a non-null column with a default will rewrite the table and can lock writes for large datasets. Production-safe migrations often add the column as nullable, backfill in small batches, then add constraints later.