The table was wrong. Numbers buried in bad structure, hard to query, harder to fix. The answer was simple: add a new column.
A new column changes how data works in your system. It can store the missing value that drives a critical feature. It can split an overloaded field into something clear and atomic. It can make a slow query fast. The key is to define it with purpose and precision.
When adding a new column in SQL, always start with the schema. Decide the data type first—integer, text, boolean, timestamp—based on the real use case, not a guess. Set defaults if they will apply to most rows. If nulls are allowed, know why. Mismatched types and vague constraints lead to data bloat and hidden bugs.
Use explicit migration scripts. For PostgreSQL: