Java.DBMigrationTools.How do you view migration history?

That depends on the migration tool you’re using. Here are the most common ones:

Flyway

  • Flyway keeps migration history in a table called flyway_schema_history in your database.
  • You can check it by running:
SELECT * FROM flyway_schema_history;

Or from CLI:

flyway info

This shows applied, pending, failed migrations, and checksums.

Liquibase

  • Liquibase stores migration history in a table called DATABASECHANGELOG.
  • To view:
SELECT * FROM databasechangelog;

Or from CLI:

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