Creating a new column sounds simple, but the details matter. You need to choose the right data type, set defaults, handle nullability, and avoid locking users out during schema changes. In production systems, downtime is costly. A careless schema migration can block writes, slow queries, or corrupt data.
In relational databases like PostgreSQL or MySQL, adding a new column requires an ALTER TABLE statement. In large tables, this operation can lock the table or rebuild it. In NoSQL stores, adding a new field may be schema-less, but your application logic still changes, and indexing needs consideration.
When you add a new column for timestamps, identifiers, or computed values, the cost is not just in storage—it’s in the read and write paths. Every query must know if the field is populated or left null. If you skip default values, you need to backfill data later. If you add a non-null column without a default, the statement will fail unless the table is empty.