Thanks for your answer!
Yeah, I imagined that this is not a common setup. But, I got the code as it is.
Just to mention I was able to make it work removing Flyway’s auto-configuration as described in this question https://stackoverflow.com/a/58989276