Liquibase ↔ Database Restore: Confirming Schema Sync After Backup Recovery
29.5K reputation · 01 Nov 2024, 15:06 UTC
Goal
Determine whether a restored database backup can be considered in sync with the Liquibase changelog without generating false pending changesets due to backup‑time context or label settings.
Constraints include the possibility that the backup was taken while a specific context or label was active, which may cause Liquibase’s validation and drift‑detection mechanisms to report discrepancies that are purely contextual. Additionally, Liquibase tracks only changeset text via checksums, so any data loss or corruption in the restored tables would not be flagged by its built‑in checks.
- Does Liquibase’s validation correctly distinguish between real schema drift and contextual false positives after a restore?
- How can practitioners identify whether pending changes reported by Liquibase stem from actual schema differences versus mismatched context/label settings?
- What supplemental checks are necessary to verify data integrity when Liquibase lacks native data‑comparison capabilities?