The table is incomplete. The data is rich, but there’s nowhere for it to go. You need a new column.
Adding a new column is more than a schema tweak. It shifts how your system stores, queries, and scales. Done wrong, it creates bottlenecks, corrupt records, or downtime. Done right, it’s invisible to the user and safe for production.
Start with the definition. In SQL, a new column is added with ALTER TABLE. In NoSQL, the column may be implicit until a document contains that field. The principle is the same: update the structure without breaking existing data.
Before adding the column, decide on data type. Integer, text, boolean, timestamp—choose what matches the future values. Consider nullability. Will existing rows have default data, or will the column remain blank until updated? Defaults prevent errors in queries.