The schema had shifted. A new column was needed.
When working with structured data, adding a new column can feel like a small change. It isn’t. In relational databases, every column defines the shape of the truth your application consumes. A new column changes contracts. It modifies queries. It forces migrations.
Start with clarity. Name the column with precision. Follow existing conventions. Align it with the data model, not the implementation shortcut. Use the right data type—small choices here impact performance at scale.
Plan for the migration. If you are adding the column to a table with heavy traffic, design a zero-downtime approach. In PostgreSQL and MySQL, adding a nullable column is fast, but adding one with a default triggers a rewrite. Test against production-like datasets before committing.