A database change is more than adding a field. A new column shifts queries, indexes, constraints, and sometimes the entire shape of the system. Treat it as code, versioned and reviewed. Never run ad‑hoc ALTER TABLE in production.
Start by defining the column in your schema migration. Include the data type, nullability, default values, and any foreign keys. Test the change against a copy of production data. Watch for locks. Large tables can stall traffic during an alter. Use online schema change tools when supported by your database engine.
After creating the new column, backfill data in small batches. Avoid long transactions that block reads or writes. Build monitoring to track performance during and after changes. Confirm that all application code paths handle the new column correctly—both reads and writes.