# X_MIGRATION_ROLLBACK_DESTRUCTIVE

## Means

a rollback would serve an older build over a destructive migration

## Typical cause

the ledger holds a migration a newer build applied that drops or rewrites data (isDestructiveMigration), and the build starting now predates it

## Fix

`x deploy --image <the newer image> --json` — roll forward; or, after checking this build runs on the newer schema, set ROLLBACK_ALLOW_DESTRUCTIVE=<migration id> on the migrate role

[Entity and database](/error-codes#entity-and-database)
