Loading tutorials
application.yml), SQL DDL and DML, and how to add a Maven or Gradle dependency. You should also know a relational database such as PostgreSQL and a basic Git workflow. No Flyway knowledge is needed.3 min readapplication.yml, Maven or Gradle dependencies, basic SQL DDL, and a relational database such as PostgreSQL. A datasource must already be configured.2 min readflyway-core and the database module for your database on the classpath, and that you can write basic SQL DDL and DML. Versioned migrations are the main tool Flyway gives you. Each one is a SQL file that Flyway applies exactly once, in versio2 min readdb/migration folder with at least one versioned migration such as V1__create_app_user.sql, and a configured DataSource. You need no extra code to run migrations. Spring Boot does it during startup.2 min readV1__create_app_user.sql. You should also be able to run simple SQL queries against PostgreSQL.2 min readV1__create_app_user.sql, and read application.yml. Spring Boot auto-configures Flyway as soon as flyway-core is on the classpath. The spring.flyway.* properties let you change that default b2 min readflyway_schema_history table records.2 min readflyway_schema_history, both covered in earlier chapters. It explains how Flyway detects edited migrations and how to recover when validation fails.2 min readflyway_schema_history table. You should also be comfortable with spring.flyway properties.2 min readflyway_schema_history, and run Flyway at startup in Spring Boot. Here you will write a migration in Java for work that SQL handles badly.2 min read@SpringBootTest. It also assumes Docker is available on your machine.2 min readflyway_schema_history records them, and use Git branches and pull requests.2 min readddl-auto: validate behaves.2 min readflyway_schema_history, and configure spring.flyway properties. It covers how to customize the startup step and which habits keep migrations safe in production.2 min read