The code was failing, and the database migration was the reason. A new column needed to be added, but time and risk were stacked against the release. The right move was clear: treat the schema change as a first-class part of the deployment plan.
Adding a new column to a production database is simple in syntax but complex in impact. It can cause locks, trigger unexpected constraints, or slow queries. The best approach is to create the new column in a way that does not interrupt existing reads or writes. In most SQL engines, you can add a nullable column with a default value in constant time, then backfill data in controlled batches.
Always verify column names, types, and constraints before running the migration. An ENUM or large string field can eat unnecessary space. Use the smallest compatible type. Adding indexes at the same moment you create the column can cause long locks—wait until after data backfill and workload monitoring.