Since flyway scripts are pure SQL they can insert data into the database. The migrated dataset should not contain the data that was inserted by flyway scripts. Thus lis-dbunit-migration needs to make a diff between the source and target db version.
The process should be:
Setup a clean database
Let flyway migrate to a source version
Save the database state of the source version
Insert the dataset that should be migrated
Migrate the dataset using flyway to the target version.
Since flyway scripts are pure SQL they can insert data into the database. The migrated dataset should not contain the data that was inserted by flyway scripts. Thus lis-dbunit-migration needs to make a diff between the source and target db version.
The process should be: