Adding a new column sounds simple, but it can expose every weakness in your system. A bad migration can lock tables, slow writes, or crash services. A good one moves fast and leaves no trace but the extra field you need.
Plan it. Decide on the column name, data type, nullability, and default value. Keep naming consistent with existing conventions. Choose the smallest type that fits the data to avoid wasting storage and hurting query speed.
Write the migration script. For relational databases, use ALTER TABLE with care. Adding a nullable column is usually safe. Adding a non-nullable column with a default may block rows during backfill. Consider adding the column as nullable, then updating data in batches, then setting it non-nullable in a second step. For heavily used tables, schedule downtime or run online schema changes using tools like pt-online-schema-change or gh-ost.