Adding a new column sounds simple, but it can be the most dangerous migration in your stack. It affects how queries run. It changes indexes. It influences performance across every environment. A single mistake can lock tables, block writes, and throw errors into production.
The first step: define the column with precision. Choose the correct data type. Avoid nullable fields unless they serve a real purpose. Think about defaults right away—adding them later can mean rewriting millions of rows.
The second step: plan the deployment. In high-traffic systems, use online schema changes or background migrations. Test them in staging with realistic data sizes. Even a harmless ALTER TABLE can run for hours if it touches a wide table.