You need a new column. Adding one is not just another migration—it’s an operation that changes the shape of your data, the speed of your reads, and the safety of your writes. When you introduce a new column, you are declaring new rules for how information is stored and retrieved.
First, define the column’s purpose with absolute clarity. Name it with precision, avoiding vague placeholders. Choose the correct data type—integer, text, JSON, boolean—based on the queries you know you will run. Incorrect types lead to waste, implicit conversions, and broken indexes.
Second, plan the migration path. For large tables, an immediate ALTER TABLE may lock writes and stall systems. Use online schema change tools, or stage the column by creating it empty and backfilling data in controlled batches. Always run load tests with realistic datasets before merging to production.