The LiquibaseUpdater application is a wrapper over Liquibase. This application performs the database migration and allows to control the management process of database version updating.
The application provides the following functionality:
The database filling procedure is carried out according to certain rules described in the Liquibase data schema. Filling the database can be done in two ways: until a certain tag in changes schema or complete database filling according to the scheme.
There is a processes log. Log contains both the information sent to standard output, and exceptions service messages. Each application run creates a separate log file.
The result of application operation is displayed in console as a text status line indicating the time of the application operation and the number of execution errors.
Technologies: Liquibase, Spring, Apache-cli, JUnit, DBCP, MySQL, Oracle, Maven, Maven-jar, Maven-shade, Jacoco, XML, Liquibase log framework, Git, Jira, Confluence.
The possibility to control the database versions updating using the LiquibaseUpdater application was realized.
Company’s achievements during the project:
Example of database commit
./liquibase_updater.bat -verbose -install=d:/doc/changelog/rollback2tag/master.xml
./liquibase_updater.bat -verbose -config=config.properties -install=d:/doc/changelog/rollback2tag/master.xml -tag=version_0.1.0
Example of database rollback
./liquibase_updater.bat -verbose -force -config=config.properties -rollback=d:/doc/changelog/rollback/master.xml
./liquibase_updater.bat -verbose -config=config.properties -rollback=d:/doc/changelog/rollback2tag/master.xml -tag=version_0.1.0
Rolling back the full database requires an additional key -force.
Example of log content