-
Java - 1.8.x
-
Maven - 3.x.x
1. Clone the application
git clone https://github.com/chintanb/spring-boot-flyway-example.git2. Modify application properties to add your database url, username and password
-
open
src/main/resources/application.properties -
change
db.urlanddb.usernameanddb.password
4. Build and run the app using maven
cd spring-boot-flyway-example
mvn package
java -jar target/flyway-demo-0.0.1-SNAPSHOT.jarYou can also run the app without packaging it using -
mvn spring-boot:runThe app creates a database called demo (recreates if it already existed), runs V1__schema migrations on it and exits.