Adding a new column should be simple, but in production systems it carries weight. Schema changes can block writes, lock tables, and trigger replication lag. The key is to design and execute the change with zero downtime.
First, assess the database type and version. Some engines support ADD COLUMN operations instantly for nullable or defaulted fields. Others rewrite the entire table. Know the cost before you run the migration.
Second, define the new column with explicit nullability, default values, and constraints. Hidden assumptions in application code cause most post-migration bugs. Match the type exactly to the intended use, avoid implicit casts, and keep the schema self-documenting.