The query runs fast, but the data is wrong. You forgot the new column.
Adding a new column in a production database is not a task to improvise. It changes schema, runtime cost, and how code interacts with data. Done well, it is clean and reversible. Done poorly, it locks tables and stalls requests.
First, define the column name and data type with precision. Use a name that reflects the domain, not your internal shorthand. Avoid generic terms like “info” or “data.” Pick the smallest possible type that fits. An integer often beats a bigint. A varchar(64) makes indexes lighter than text fields.
Second, plan your migration. On large tables, adding a column can block writes. Use online schema change tools or chunked migrations. In Postgres, adding a nullable column without a default is fast; adding a default rewrites the table. In MySQL, behavior depends on the storage engine. Always test on a copy of production-scale data before touching live systems.