Skip to content

Skip nested modules when configuring flyway #1545

@ooraini

Description

@ooraini

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']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions