The query runs. The table waits. You need a new column and you need it without breaking the system.
Adding a new column is simple in theory but dangerous in production. Schema changes affect queries, indexes, replicas, and API contracts. If you block writes during a migration, you risk downtime. If you skip constraints, you risk silent data corruption. The right approach balances speed, consistency, and visibility.
First, define the column with clarity. Use explicit data types, precision, and defaults. Avoid implicit conversions. This prevents mismatched values and unintended nulls.
Second, plan your migration path. For large datasets, use an online schema change tool or chunked updates. This reduces lock times. Test the operation on a staging copy with production-like load. Confirm query plans stay stable after the change.