Adding a new column in production is high-stakes work. The wrong type, the wrong default, or a careless null can ripple through APIs, services, and jobs. Data integrity depends on precision. The process starts with defining the column name, data type, and constraints. Every detail matters, because changing them later means costly migrations.
In SQL, use ALTER TABLE with intent:
ALTER TABLE orders
ADD COLUMN status VARCHAR(20) NOT NULL DEFAULT 'pending';
Always stage the change in development first. Run your full test suite. If the dataset is large, consider adding the new column without indexes, then building indexes separately to avoid long locks. For zero-downtime deployments, pair schema changes with code releases that can handle both old and new structures until the migration is complete.