Comment #7 on issue 406 by
kamil.sz...@gmail.com: Flyway.execute() fails if
Unfortunatly "Other problems related to this issue seem to be resolved in
latest snapshot builds" is not true :<.
I was testing it with the wrong DB user what resulted in not all cases
being tested properly :<.
But a good thing is that error messages are descriptive enough:
[ERROR] com.googlecode.flyway.core.api.FlywayException: Error setting
current schema to "flyway_test"
[ERROR] Caused by org.postgresql.util.PSQLException: ERROR: invalid value
for parameter "search_path": "flyway_test, "$user", public"
Detail: schema "public" does not exist
One could argue with it but I would go with not fixing this issue further.
The cause of this error is DB role not being set up properly and should be
handled by DB administrator.