The report was late. The fix was simple: add a new column.
Adding a new column to a table should be direct, but the cost of getting it wrong can be high. Schema changes can lock tables, block writes, or corrupt data under load. The safest path is clear planning, atomic changes, and verified rollouts.
First, define the exact column name, type, and constraints. Use explicit NULL or NOT NULL rules. Avoid relying on defaults unless necessary. For large tables, check the database engine’s behavior for ALTER TABLE ADD COLUMN—some engines rewrite the whole table, some add metadata instantly. For PostgreSQL, adding a nullable column without a default is fast. Adding a default with a rewrite is not. MySQL and MariaDB behave differently depending on storage engine and version.
Second, run the change in a controlled environment. Test with the same data volume as production. Watch query plans. Even if adding a new column seems harmless, implicit casts or triggers can cause slowdowns.