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…

  1. From the Git Perspective in Eclipse, checkout the latest version of the branch v9.x.x.
  2. In the/app directory of your workspace, the cloudstreetmarket.properties ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.