Introduction
The dbunit-migration-maven-plugin is a tool to migrate a collection of DBUnit data set files from one database schema version to another with the use of Flyway and testcontainers.
Currently, it supports the following dataset types:
- XML
- Flat XML
- XLS (Excel)
- CSV
- SQL insert scripts
How it works?
The overall process the plugin implements is:
- Start a clean database with testcontainers.
- Use Flyway to migrate the database to the version the dataset files are based on.
- Load a dataset into the database.
- Let Flyway migrate the database to a target version.
- Extract the database to a dataset file.
- Repeat for all dataset files.