The query finished running, but the data was wrong. A single missing field broke everything. The fix was simple: add a new column.
Adding a new column sounds trivial, but it’s where many systems reveal their real complexity. Schema changes touch more than the database. They affect APIs, migrations, ORM models, analytics pipelines, and every service that depends on the data shape. A careless change can slow queries, lock tables, or take production down.
In SQL, a new column is defined with ALTER TABLE. On large datasets, this can be an expensive operation. Some engines rewrite the whole table. Others allow an instant metadata-only change. Even when the DDL is fast, you need a plan to backfill values and update code that reads or writes the column.
In NoSQL databases, adding a new field may not require schema migration at all. Documents can store it dynamically. But without validation at the application layer, drifting formats can corrupt your logic. Make sure schema enforcement or versioning is in place.