A new column had appeared in production.
In databases, adding a new column changes more than the schema. It changes queries, indexes, performance profiles, and data contracts. Whether you work with PostgreSQL, MySQL, or modern distributed systems, the way you introduce this change decides if your code ships clean or your pager goes off at 2 a.m.
A new column must start with a clear definition: name, type, constraints, default values. Choose NULL or NOT NULL based on the real state of your data, not assumptions. Set default values explicitly; implicit defaults create future bugs.
When adding the column, use operations that don’t lock large tables longer than necessary. In PostgreSQL, ALTER TABLE ... ADD COLUMN is fast if no default is set. Populating the data in a separate step avoids heavy locks. In MySQL, consider ONLINE DDL where supported. For distributed SQL platforms, verify replication lags and apply schema changes in stages.