You needed a new column, and you needed it fast.
Adding a new column sounds small. It is not. Schema changes ripple through systems. Migrations lock tables, block writes, and halt an application at the worst moment. Production demands zero downtime, real consistency, and predictable rollouts.
The new column must be defined with precision. Name it clearly. Choose the right data type—avoid needless flexibility that corrupts later. If it will store foreign keys, index them. If it will be part of a hot query path, design the index before deployment.
Plan the migration. Run it first in staging with live traffic simulation. Use tools that allow concurrent DDL without blocking reads. In Postgres, employ ALTER TABLE ... ADD COLUMN with defaults handled in smaller batches to avoid locking. In MySQL, consider ALGORITHM=INPLACE when possible. For large datasets, backfill in controlled increments to keep load predictable.