Class SpringModulithFlywayMigrationStrategy
java.lang.Object
org.springframework.modulith.runtime.flyway.SpringModulithFlywayMigrationStrategy
- All Implemented Interfaces:
FlywayMigrationStrategy
public class SpringModulithFlywayMigrationStrategy
extends Object
implements FlywayMigrationStrategy
A custom
FlywayMigrationStrategy that customizes the Flyway execution to rather run multiple migrations for
each of the application modules identified by the configured ApplicationModuleIdentifiers. This customization
is only applied for already configured locations that do not use any wildcards.- Since:
- 2.0
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newSpringModulithFlywayMigrationStrategyfor the givenApplicationModuleIdentifiers. -
Method Summary
-
Constructor Details
-
SpringModulithFlywayMigrationStrategy
Creates a newSpringModulithFlywayMigrationStrategyfor the givenApplicationModuleIdentifiers.- Parameters:
identifiers- must not be null.
-
-
Method Details
-
migrate
public void migrate(org.flywaydb.core.Flyway flyway) - Specified by:
migratein interfaceFlywayMigrationStrategy
-