The query ran. The table returned. But the data was missing the shape you needed. So you add a new column.
A new column changes how data works inside a system. It can store calculated values, reference other fields, or hold raw input from external APIs. In SQL, adding a new column to a table is done with ALTER TABLE ... ADD COLUMN. In many frameworks, schema migrations handle this step, so the database and code evolve together without conflicts.
Performance matters. A new column on a large dataset can cause locks or long migration times. Plan for this by using non-blocking migrations where supported. For heavy write tables, consider backfilling in small batches after adding the column.
Types must be chosen with intent. An integer column for counters, a timestamp for events, JSON for flexible structured data. The wrong type forces expensive conversions later. Use defaults when possible to simplify application logic and reduce null checks.