Cursor-rules-java 513-frameworks-micronaut-db-migrations-flyway
Use when you need to add or review Flyway database migrations in a Micronaut application — micronaut-flyway, db/migration scripts, flyway.datasources.* configuration, and alignment with JDBC or Micronaut Data. Part of the skills-for-java project
install
source · Clone the upstream repo
git clone https://github.com/jabrena/cursor-rules-java
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jabrena/cursor-rules-java "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/513-frameworks-micronaut-db-migrations-flyway" ~/.claude/skills/jabrena-cursor-rules-java-513-frameworks-micronaut-db-migrations-flyway && rm -rf "$T"
manifest:
skills/513-frameworks-micronaut-db-migrations-flyway/SKILL.mdsource content
Micronaut — Database migrations (Flyway)
Apply Flyway migration guidelines for Micronaut.
What is covered in this Skill?
with JDBC/Hikari and database driversmicronaut-flyway- Versioned SQL under
src/main/resources/db/migration
(per-datasource) configuration in YAML/propertiesflyway.datasources.*- Tests with Testcontainers and real migration chains
- Coordination with
and@511-frameworks-micronaut-jdbc@512-frameworks-micronaut-data
Scope: Apply recommendations based on the reference rules and good/bad examples.
Constraints
Before applying Flyway or SQL changes, ensure the project compiles. After improvements, run full verification.
- MANDATORY: Run
or./mvnw compile
before applying any changemvn compile - SAFETY: If compilation fails, stop immediately
- VERIFY: Run
or./mvnw clean verify
after applying improvementsmvn clean verify - BEFORE APPLYING: Read the reference for detailed rules and good/bad patterns
When to use this skill
- Add or review Flyway migrations in a Micronaut project
- Configure micronaut-flyway or db/migration layout
Reference
For detailed guidance, examples, and constraints, see references/513-frameworks-micronaut-db-migrations-flyway.md.