Adding a new column sounds simple. It rarely is. Done right, it scales. Done wrong, it blocks deploys, spikes load, and corrupts data. The database schema is the backbone of every system. Changing it means touching production, and production does not forgive.
The first step: define exactly what the new column must store—type, constraints, default values. Leave nothing ambiguous. Map its purpose to upstream and downstream systems.
In SQL, adding the column is straightforward:
ALTER TABLE orders ADD COLUMN processed_at TIMESTAMP NULL;
In large datasets, this command can lock the table and freeze transactions. Use an online schema migration tool when the table size and load demand it. Tools like pt-online-schema-change or native features in Postgres and MySQL can create the new column without downtime.