A blank field now waits on the screen, demanding definition. The schema is live. The database serves millions of requests a day. You need a new column.
Adding a new column is simple in theory but high risk in practice. A wrong type, a bad default, or a lock on the wrong table can bring production to a halt. An online schema change must preserve data integrity, avoid downtime, and remain backwards compatible until all services are aligned.
The first decision is structure. Define the column name and type with precision. Match data size to real needs to minimize storage and CPU cost. Avoid NULLs unless they are semantically correct; use defaults when possible to reduce conditional logic in the application layer.
Next is migration strategy. For large datasets, a blocking ALTER TABLE can freeze queries and lock writes. Use online migration tools or partition the rollout. Backfill in small, controlled batches to manage load and reduce replication lag. Verify performance impact at each step.