The query runs, but the data is wrong. You scan the schema. One table is fine. The other needs a new column.
Adding a new column should be simple. But in production systems, every step matters. You need to choose the right data type, set defaults, and ensure no downtime. With the wrong approach, you risk broken queries, blocked writes, or hours of migration lag.
First, define the column in a way that preserves integrity. Decide if it allows NULLs or needs a default value. If the table is large, backfilling data in one step can lock rows and cause performance hits. Break it into batches.
Second, check index impact. Adding an indexed column on a massive table will trigger a full rebuild. This can spike CPU and IO. If you only need the column for filtering in rare queries, avoid indexing until real usage demands it.