- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 40
 
Open
Description
What I want to do is to run the migration eagerly before other Components need the database.
I tried to inject the FlywayPlayComponents into my Setup, like:
    @Singleton
    class AppSetup @Inject()(val environment: Environment,
                                val webCommands: WebCommands,
                                val configuration: Configuration,
                           )
      extends FlywayPlayComponents {
    
      flywayPlayInitializer
      ...
But AppSetup is still run first and the Flyway migration is run with the first request.
Is there a way to do this or do I miss something?
I also created a Stackoverflow question:
https://stackoverflow.com/questions/60303933/how-to-do-flyway-migrations-eager-in-play-framework
hertg
Metadata
Metadata
Assignees
Labels
No labels