Class FlywayMigrationConfig


  • @Configuration
    @ConditionalOnProperty(name="spring.flyway.enabled",
                           havingValue="true")
    public class FlywayMigrationConfig
    extends Object
    Flyway configuration
    Author:
    pvidal Created by pvidal on 04/12/2019.
    • Constructor Detail

      • FlywayMigrationConfig

        @Autowired
        public FlywayMigrationConfig​(org.flywaydb.core.Flyway flyway,
                                     DataSource dataSource,
                                     DatabaseConfigProperties databaseConfigProperties)
        Constructor
        Parameters:
        flyway - Flyway
        dataSource - Awe routing datasource
        databaseConfigProperties - Database config properties
    • Method Detail

      • flywayMigrationStrategy

        @Bean
        public org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy flywayMigrationStrategy()
        Flyway migration strategy
        Returns:
        FlywayMigrationStrategy
      • initFlyway

        @PostConstruct
        public void initFlyway()