Adding a new column should be simple. In practice, it can break indexes, slow queries, and lock tables in production. The right approach depends on your database engine, the size of the table, and the uptime requirements.
In SQL databases, a new column requires an ALTER TABLE statement. For small tables, the change is instant. For large ones, the operation can lock writes and reads until it finishes. On MySQL, use ALGORITHM=INPLACE or ONLINE if supported. On PostgreSQL, adding a nullable column without a default is usually fast, but adding a default value can rewrite the table. Plan for these details before deploying.
Avoid backfilling data in the same migration as adding the column. Create the new column first, deploy, then run a separate background job to populate it. This reduces lock time and rollback risk. Monitor query plans after the change to confirm that indexes and constraints still work as intended.