Adding a new column sounds simple. In practice, it can break deployments, lock tables, and block writes if done wrong. On small datasets, it’s a quick migration. On large, high-traffic systems, it’s a change that can cause downtime or inconsistent reads.
The first step is defining the new column in your schema. Choose the data type carefully, keeping storage size, indexing options, and query patterns in mind. If an index will be required, decide whether to create it immediately or defer until after backfilling to reduce migration load.
For production safety, use an online schema change method to add the new column without locking the table. Tools like pt-online-schema-change, gh-ost, or native database features can perform this with minimal impact. Always run the schema change first in a staging environment with production-scale data to measure execution time and identify risks.