A missing new column had broken everything.
Adding a new column should be simple. In practice, it’s where many deployments fail. Schema changes touch production data. They carry risk. The key to safe execution is planning, atomic changes, and rollback paths.
First, define the new column with precision. Decide on its data type, default value, and nullability before touching the database. Inconsistent definitions lead to silent bugs. For large datasets, avoid blocking writes with heavy ALTER TABLE commands. Use online schema change tools or background migrations.
Next, deploy in stages. Add the new column in one release. Populate it in the background to avoid load spikes. Switch application code to use it only after it’s fully ready. This reduces the blast radius if something fails.