The query was silent, but the schema had changed. A new column appeared in the table definition, and everything that touched it had to adapt—or break.
Adding a new column is one of the most common database schema changes. It seems simple: alter the table, define the column, deploy. In production, it is not simple. Indexes, constraints, replication, and application code must all align. Done wrong, it will lock rows, block writes, and cause downtime. Done right, it is seamless.
The first step is planning. Identify if the new column is nullable or has a default value. A nullable column with no default is fastest to deploy. A column with a non-null default value can rewrite the entire table, creating long locks and replication lag. For high-traffic systems, online schema change tools or phased migrations are essential.
Next, consider indexes. Adding an index right away on the new column can double the migration cost. Often, you add the column first, then build the index in a separate step. For large data sets, use concurrent index creation or equivalent features to avoid locking.