So, just to explain a little bit more. I’ve a database on a project that is been managed by Flyway, and because of that I had to add the code above in order to allow flowable to create the necessary tables without any complain from Flyway.
@Configuration
public class MigrationConfig {
@Bean
FlywayMigrationInitializer flywayInitializer(Flyway flyway) {
return new FlywayMigrationInitializer(flyway, (f) ->{} );
}
@Bean
@DependsOn("entityManagerFactory")
FlywayMigrationInitializer delayedFlywayInitializer(Flyway flyway) {
return new FlywayMigrationInitializer(flyway, null);
}
}
This code works fine for spring-boot:2.1.4. But now I’m trying to upgrade to Spring Boot 2.2.2-RELEASE, and it not working anymore. I’ve found a closed issue for that over here Spring Boot Issue 18362, it mention Hibernate instead of Flowable but the problem is the same (need to create some tables before flyway migrate).
We had to make that because we are dropping some unused indexes from the tables created by flowable that were using a lot of space but were never been used.
What are my questions:
- Is that a way to work with Flowable + Flyway + Spring Boot 2.2.2-RELEASE? Does anyone had this same problem before?
- Maybe flowable has a way to create/drop indexes that I’m not familiar with. If so, I’d like to hear more about it.
Feel free to add any comment, or ask for any more clarifications about it!