Adding a new column should be fast, safe, and repeatable. But in production, schema changes can break queries, lock tables, and cause downtime. The right process turns this risky step into a clean operation.
First, define the new column in your migration script. Use clear, explicit types. Avoid NULL defaults unless required. Always think about index impact before adding constraints.
Second, run the migration in a controlled environment. Test the schema change against real query workloads. Watch execution plans. A new column can alter optimizer behavior, especially if it changes indexes or clustering keys.
Third, deploy with safety measures. Break large migrations into smaller steps. Add columns before adding heavy indexes. If possible, roll out to a subset of replicas before touching the primary.