← All docs

Liquibase

SQL / XML / YAML

Liquibase supports multiple changelog formats. Use SQL changelogs for best results.

Auto-Detection

MigrationPilot auto-detects Liquibase via liquibase.properties or changelog files.

Migration Path

Default migration file pattern:

changelogs/**/*.sql

Setup

# For SQL changelogs, analyze directly
npx migrationpilot check ./changelogs --pattern "*.sql"

# For XML/YAML changelogs, generate SQL preview first:
liquibase update-sql > /tmp/migration.sql
npx migrationpilot analyze /tmp/migration.sql

GitHub Action

Add to your CI workflow:

- name: Check Liquibase migrations
  run: |
    liquibase update-sql > /tmp/migration.sql
    npx migrationpilot analyze /tmp/migration.sql --fail-on critical

Configuration

Add a config file to set the default migration path:

# .migrationpilotrc.yml
migrationPath: "changelogs/**/*.sql"
failOn: critical