Last updated: November 27, 2026.
A DbUp hotfix can succeed on the release database and fail on the development database. Start with the journal and the current schema in each environment. The journal tells you which scripts DbUp considers complete. The schema and data tell you which work is still needed.
Identify the two upgrade paths
Inspect SchemaVersions, or the configured journal table, on each database. Record the failed script name, the relevant columns and constraints, and the intended data change. Check for partial changes after a failed run. DbUp supports per-script or whole-run transactions, and its default is no transaction.
For example, the release hotfix might backfill a legacy status column, while development already stores that status in a replacement column. A guard that merely skips the update when the legacy column is missing can lose the business fix. Decide what equivalent change must happen on the newer schema.
Make the merged sequence work from both states
If the hotfix has not shipped, make its script compatible with the supported starting states before deployment. If release already ran it, keep the deployed script and its identity wherever possible. A reconciliation script that runs after the failure cannot help because DbUp stops at the failing script. Design the merge so pending scripts can run in order. That may require a compatibility step before the blocked script, or a reviewed baseline repair when the newer schema makes the old operation impossible.
Use a separate, new migration for any convergence work that must run on databases which already recorded the hotfix. Only consider a manual journal change during a controlled repair after verifying all intended effects and preserving the audit history.
Verify before sharing the next build
Run the exact merged package against disposable copies of both starting states: release with the hotfix applied, and development with its newer schema. Check that both converge to the same intended schema and business data. Run the package again and confirm that journaled one-time scripts are skipped. For future changes, schedule column removal after both releases have stopped depending on it.