spring-projects / spring-projects/spring-modulith

Skip nested modules when configuring flyway

Open
#1,545 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.2k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

The SpringModulithFlywayMigrationStrategy default to creating flyway tables for all modules even nested ones. Nested modules are part of a larger module and typically share the DB schema, therefore their migrations are bundled with their top level module.

It would be nice if there was a property to configure the modulith flyway strategy:

spring.modulith.runtime.flyway-strategy: all

with possible values including [all, top-level]

Also, some modules don't have any data requirement, so skipping them entirely makes sense:

spring.modulith.runtime.flyway-skip: ['email']

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating SpringModulithFlywayMigrationStrategy and tracing how it creates Flyway tables for modules. Define how the strategy and skip-list properties should be bound and applied, then verify that nested modules can be excluded and configured modules can be skipped while existing behavior remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.