Package energy.eddie.core
Class FlywayConfig
java.lang.Object
energy.eddie.core.FlywayConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategyflywayMigrationStrategy(List<String> enabledOutboundConnectorNames, List<String> enabledRegionConnectorNames) Creates aFlywayMigrationStrategyfor each enabled region-connector and outbound-connector, as well as for thecore,data-needsandadmin-consolemodule.
-
Constructor Details
-
FlywayConfig
public FlywayConfig()
-
-
Method Details
-
flywayMigrationStrategy
@Bean public org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy flywayMigrationStrategy(@Qualifier("enabledOutboundConnectors") List<String> enabledOutboundConnectorNames, @Qualifier("enabledRegionConnectors") List<String> enabledRegionConnectorNames) Creates aFlywayMigrationStrategyfor each enabled region-connector and outbound-connector, as well as for thecore,data-needsandadmin-consolemodule. The migration strategy creates the schema for the module and executes any migration scripts found in the respective folders on the classpath. The folder pattern is: "db/migration/<region-connector-name>" or "db/migration/<outbound-connector-name>". Any minus ('-') in the region-connector's and outbound-connector's name will be replaced by an underscore ('_') for a valid schema name.- Parameters:
enabledOutboundConnectorNames- List of all the region connector names.enabledRegionConnectorNames- List of all the region connector names.
-