The query finished running, but something is missing. You need a new column.
A new column changes the shape of your data. It can power a feature, unlock an insight, or simplify the next deployment. Done right, it is a fast operation. Done wrong, it can break production.
Adding a new column starts with the schema. In relational databases, you define the name, data type, and constraints. Keep naming consistent with existing conventions. Choose types that match the data you expect now and in the future. Avoid nullable flags if a default makes sense.
When working with large tables, avoid locking the write path for too long. Use operations that minimize downtime. In PostgreSQL, ALTER TABLE ADD COLUMN is straightforward, but watch out for adding with a default value on big tables—it can trigger a full table rewrite. In MySQL, check whether the engine supports instant DDL for your case.