Adding a new column sounds simple, but in production it can be dangerous. The wrong migration can lock tables, stall queries, and push latency through the roof. You must plan every step, from schema change to deployment, to avoid downtime.
First, define the column in your migration script. Know the data type, default values, nullability, and constraints. Avoid wide types if you want to keep your index size low. Test the migration against a copy of actual production data. Simulate the load to see if the ALTER TABLE will block writes or require a phased rollout.
Second, decide how you will backfill. For large tables, a single UPDATE can choke your database. Use batched jobs. Monitor lock times. Keep replication lag in check. Never assume the database will handle millions of writes in one smooth sweep.