Adding a new column should be simple. In practice, it can break queries, APIs, and downstream systems. The safest workflow is to make the change deliberately, verify it in staging, and ship it without downtime.
First, define the column in your migration file with the exact data type, default value, and constraints. In relational databases like PostgreSQL or MySQL, ALTER TABLE is fast for metadata-only changes but can lock rows for more complex operations. Avoid adding non-null columns with no default in high-traffic systems—they will rewrite the table.
Next, update any code paths that read or write this column. That means ORM models, raw SQL queries, data serialization, and API contracts. Test in isolation. Run load tests if the table is large. Monitor for slow queries after the change.