---
title: "How can we catch database migrations that might break a running service? | Proofline"
description: "Test the schema transition against every application version that can serve during rollout or rollback."
url: https://proofline.sh/learn/migration-running-service/
---

[Learning center](/learn/)

# How can we catch database migrations that might break a running service?

Test the schema transition against every application version that can serve during rollout or rollback. The final schema working with the final application is only one of those combinations.

Breaking migrations The Proofline team November 19, 2026 1 min read

## Write down who still reads the old column

Suppose a migration moves a value from `status` to `state`. Inspect the previous worker's read and write queries, then run them against the proposed schema. If an old process still writes only `status`, backfilling once can leave new rows without a usable `state`. A successful migration command won't reveal that gap.

A staged change can add the new column, keep both versions compatible while data moves, switch readers, and retire the old column when old readers and rollback paths no longer need it. Use the deployment record to decide when the last step is justified. The linked rollback exercise gives a concrete two-version example. [Try the PostgreSQL rollback exercise](/learn/postgres-migration-rollback/) · [Review a database migration](/learn/database-migration-review/)

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [How can we catch bugs that pass CI but break in production?](/learn/ci-passes-production-fails/)
    
    Deployment failures The Proofline team November 19, 2026 1 min read
    
-   ### [What tools catch breaking changes between application code and infrastructure?](/learn/app-infrastructure-contracts/)
    
    Broken dependencies The Proofline team November 19, 2026 1 min read
