The build was breaking. The root cause: a missing new column in production.
Adding a new column sounds simple. In reality, it can be a point of failure if handled without care. Database schema changes touch critical paths. Migrations can lock tables, slow queries, or corrupt data if they run at the wrong time.
When you add a new column, the first decision is default values. Avoid defaults that trigger a full table write; they can block traffic. Instead, create the column as nullable, then backfill in controlled batches. This pattern keeps your deployment safe, even under heavy load.
Schema migration tools like Flyway, Liquibase, or Prisma offer version control for new columns. Commit the migration file alongside the code changes that use it. In CI/CD, run migrations before deploying application code to avoid query errors on missing fields.