The table schema is wrong. You know it the moment the query slows and the data stops telling the truth. You need a new column.
A new column is not just an extra field. It is a structural change. It affects queries, indexes, migrations, and sometimes the design of the product itself. The faster you create it, the faster you can ship a fix—or an improvement.
The first step is definition. Name it with precision. Keep it short but clear. Choose a data type that fits the purpose now and years from now. If it stores IDs, make it an integer. If it stores status, use an enum or constrained text. Avoid vague types like TEXT unless the content is truly unknown.
The second step is safe migration. In relational databases, adding a new column can lock tables or slow reads. Use online migrations if your database supports them—PostgreSQL with ADD COLUMN plus defaults applied later can prevent downtime. MySQL with ALGORITHM=INPLACE achieves similar results. For large tables, batch updates after creation instead of setting default values inline.