The table returned clean. Still, you saw the gap.
You needed one thing: a new column. Adding it should be fast. It should be safe. It should not choke production. But schema changes can break more than they fix if done without care.
A new column in SQL is more than ALTER TABLE. In production systems, you must consider the table size, the write load, and whether you can run the change online. On large datasets, locked migrations can stall queries and drop services. Use an approach that avoids downtime: add the column without default values first, populate it in batches, then backfill constraints.
In PostgreSQL, use ALTER TABLE ... ADD COLUMN without a NOT NULL or expensive default. In MySQL, enable ONLINE or INPLACE algorithms if available. In distributed databases, plan the rollout in phases, starting on replicas or non-critical shards. Keep migrations idempotent and reversible. Always version your schema changes with your application code so that no deployment runs against mismatched structure.