PostgreSQL: Flyway fails after applying migration containing SET ROLE statement #1537
What version of Flyway are you using?
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
What database are you using (type & version)?
What operating system are you using?
Ubuntu and OS X (no difference for this issue)
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Upgraded from Flyway 3.2.1 to 4.1.1
What did you expect to see?
Migrations working like before
What did you see instead?
Whenever Flyway sees a "SET ROLE" command in an SQL file it attempts to create the metadata table again. But since it already exists that causes the migration to fail.
With a .sql file containing only "SET ROLE common;" this is the result:
The text was updated successfully, but these errors were encountered: