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_historyin 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