Beginning Spring Data by 2023
Author:2023
Language: eng
Format: epub
Chapter 6 Versioning or Migrating Changes
2022-07-08 01:07:52.093 INFO 354638 --- [ restartedMain] liquibase.
lockservice : Successfully acquired change log lock
Flyway
This tool mostly follows the same steps as before, but the configuration in Spring Boot
may be simpler, depending on the approach that you want to use. Flyway has various
ways to execute a migration.
⢠It includes only the dependency in the pom file so that when the
application starts up, it executes all the scripts and validates the
consistency of the database.
⢠It includes a plugin in the pom file and executes a command in the
same way you use the CLI interface.
To reduce the complexity, use the first option, which implies that you only include
the dependency and delegates the responsibility to execute the command to Spring
Boot. Letâs add the dependency that appears in Listing 6-6.
Listing 6-6. Flyway Dependencies
<dependencies>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
â Other dependencies â>
</dependencies>
After that, create a new folder in src/main/resources/db/migration and paste the
SQL files that you used in the previous chapter inside the folder. The structure will have an aspect like Figure 6-5.
175
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9916)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9779)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8298)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7778)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Windows APT Warfare by Sheng-Hao Ma(6847)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6579)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6447)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6414)
Kotlin in Action by Dmitry Jemerov(5064)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4317)
Functional Programming in JavaScript by Mantyla Dan(4038)
Solidity Programming Essentials by Ritesh Modi(4006)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3798)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3742)
The Ultimate iOS Interview Playbook by Avi Tsadok(3716)
