Order in which callbacks are executed #1296
In Flyway 4.0.0 we are using callback to do validation and other tasks that need to be executed after every migration.
We looked at flyway code and found that the callbacks are being put in a HashSet. We think this causes the callbacks to be put in random order (Set flywayCallbacks = new HashSet(Arrays.asList(callbacks)); in Flyway.java at 1348)
For now we can work around this issue by creating a callback that contains callbacks and executes them in the correct order, but we doubt this is a good practice.
The text was updated successfully, but these errors were encountered: