Automating Database Migrations with FlyWay
In the delivery life cycle, maintaining databases across versions and multiple environments can be a real headache. Flyway is an assertive protection against the entropy that schema changes can induce. Managing and automating migrations, Flyway stands as a tremendously valuable asset for software makers.
Getting ready
In this recipe, we review the Flyway configuration. We especially review its integration in to Maven. This will get every build to upgrade (if necessary) the corresponding database so that it matches the expectation level.
How to do it…
From the Git Perspective in Eclipse, checkout the latest version of the branch
v9.x.x.In the
/appdirectory of your workspace, thecloudstreetmarket.propertiesfile has been updated. Also, one extradb/migrationdirectory shows up with aMigration-1_0__init.sqlfile inside, as well as a new/logsdirectory.Please do reflect all these changes to the app directory located in your OS user
homedirectory:...