Adding a new column sounds simple. In practice, it can break production if done wrong. Schema changes touch real data at scale. They impact queries, indexes, and application code. A careless ALTER TABLE can lock writes, slow reads, or fail entirely. The goal is to make the change safely, fast, and without downtime.
First, define why the new column exists. Is it for data you will query often? Will it store nullable values or require defaults? Think about data types, storage size, and whether it should be indexed from the start or later.
Second, choose the right execution strategy. For small tables, a direct ALTER TABLE may work. For large production tables, use an online migration tool like pt-online-schema-change, gh-ost, or a managed migration process. This avoids full-table locks and keeps the system responsive.