Class AlternativeMigrationRunner

java.lang.Object
io.micronaut.flyway.AlternativeMigrationRunner
All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<FlywayConfigurationProperties>, EventListener

@Singleton public class AlternativeMigrationRunner extends Object implements io.micronaut.context.event.BeanCreatedEventListener<FlywayConfigurationProperties>
Run migrations when the DataSource is only specified in Flyway configuration and there is no Micronaut DataSource defined.
Since:
1.0.0
Author:
James Kleeh, Iván López
  • Field Details

    • applicationContext

      protected final io.micronaut.context.ApplicationContext applicationContext
  • Constructor Details

    • AlternativeMigrationRunner

      public AlternativeMigrationRunner(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
      Parameters:
      applicationContext - The application context
      eventPublisher - The event publisher
  • Method Details