Adding a new column is one of the most common schema changes in any database. It looks simple. It can break production if done wrong. The operation changes the contract between your application and its data. A poorly planned change can lock tables, cause downtime, or corrupt data.
The first step is to define the purpose. Name the new column with precision. Avoid vague or overloaded terms. Choose the correct data type for future use, not just the immediate case. This prevents later migrations that add risk and cost.
Plan how to populate existing rows. Decide between default values, computed expressions, or NULLs. Running a blocking ALTER TABLE on a large dataset in production is dangerous. For massive tables, use an online schema change tool like pt-online-schema-change or gh-ost. These create the new column safely without locking critical queries.
Review how indexes will interact with the addition. Adding an index at the same time can amplify load. Queue the changes in separate deploy steps if needed to reduce impact.