Adding a new column sounds simple. It can also be the moment you break production. Schema changes touch live data, running queries, and application code. If handled without care, they lock tables, spike load, or corrupt results.
The safest path starts with planning. Identify the exact type, nullability, and default values. Avoid schema changes during peak traffic. Test the migration on a staging environment with production-like data. Measure query performance before and after.
For relational databases like PostgreSQL or MySQL, adding a new column with a default value can rewrite the entire table. To reduce downtime, add the column without defaults, then backfill in controlled batches. For large datasets, use tools like pt-online-schema-change or native partitioned backfill approaches.