Use when you need to add or review Flyway database migrations in a Spring Boot application — Maven dependencies, db/migration scripts, spring.flyway.* configuration, baseline and validation, and alignment with JDBC or Spring Data JDBC. Part of the skills-for-java project
Apply Flyway migration guidelines for Spring Boot.
What is covered in this Skill?
src/main/resources/db/migration (V{version}__{description}.sql)spring.flyway.* properties: locations, baseline-on-migrate, validate-on-migrateBaseJavaMigration) for data backfills@311-frameworks-spring-jdbc and @312-frameworks-spring-data-jdbcScope: Apply recommendations based on the reference rules and good/bad examples.
Before applying Flyway or SQL changes, ensure the project compiles. After improvements, run full verification.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsFor detailed guidance, examples, and constraints, see references/313-frameworks-spring-db-migrations-flyway.md.