A single purpose: add a new column.
Adding a new column is simple to type but never trivial in production. The schema changes, indexes shift, queries may break. Migrations that seem small can lock tables, halt writes, or cause rollbacks under load. Precision here matters more than speed.
Define the column. Be explicit: name, type, nullability, default value. Ambiguity now will breed trouble later. Choose data types that match actual usage, not guesses. Avoid over-allocation to keep storage lean and indexing fast.
Plan the migration. For small datasets, an ALTER TABLE ADD COLUMN may finish in seconds. On large tables, online schema changes or phased rollouts are safer. Tools like pt-online-schema-change or native database features can avoid downtime. Always test the change on staging with production-like data and traffic.