Class FlywayConfig

java.lang.Object
energy.eddie.core.FlywayConfig

@Configuration public class FlywayConfig extends Object
  • 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 a FlywayMigrationStrategy for each enabled region-connector and outbound-connector, as well as for the core, data-needs and admin-console module. 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.