Adding a new column to a database table should be simple, but it rarely is in production. You are dealing with live traffic, strict SLAs, and zero tolerance for downtime. The wrong approach locks tables, blocks writes, and triggers a flood of alerts. The right approach adds the new column with minimal risk and no user impact.
First, confirm the schema change requirements. Define the column name, data type, nullability, default values, and indexing needs. Make decisions based on actual query patterns. Extra indexes slow down writes, and the wrong data type breaks integrations.
Second, choose the safest operational path. Online schema change tools like pt-online-schema-change or gh-ost can add the new column without locking the table. For small datasets, a direct ALTER TABLE may be fine. Always test these changes in a staging environment that mirrors production data.