Java.DBMigrationTools.Name some file formats Liquibase supports.

Short Answer

Liquibase supports the following changelog file formats:

  1. XML
  2. YAML
  3. JSON
  4. Formatted SQL

🔎 Details

FormatDescriptionCommon Use Case
XMLMost powerful and fully featuredTraditional projects, fine-grained control
YAMLMore human-readable, conciseModern teams, cleaner syntax
JSONGood for machine-generated changelogsTools or scripted migrations
SQLUses special comments for Liquibase directivesDevelopers who prefer raw SQL

📝 Example file names:

  • changelog.xml
  • db-changelog.yaml
  • changelog.json
  • changelog.sql (with --liquibase formatted sql at the top)

📌 Key Takeaways

✅ Liquibase supports XML, YAML, JSON, and SQL as changelog formats.
✅ Choose based on team preference, tooling, and readability needs.
✅ All formats support the same core features like changesets, rollback, and tagging.

This entry was posted in Без рубрики. Bookmark the permalink.