skip to Main Content

Flyway does not support Postgres 17, before it was 16 and the same error message occurred, I have changed the dependencies several times and it remains the same. Finally, I installed db 17 and the latest version of the flyway dependency 10.20.1, and it continues to give the same error. I don’t know what to do anymore, anyone to help?

    <dependency>
        <groupId>org.flywaydb</groupId>
        <artifactId>flyway-core</artifactId>
        <version>10.20.1</version>
    </dependency>

I tried changing the dependencies and the database

2

Answers


  1. You’re most likely missing the additional dependency:

    <dependency>
        <groupId>org.flywaydb</groupId>
        <artifactId>flyway-database-postgresql</artifactId>
    </dependency>
    

    Remember to provide the right version.

    Login or Signup to reply.
  2. Replace core dependency with DB specific dependency

    If you are using gradle

    dependencies{
        ...
        //implementation("org.flywaydb:flyway-core") <- not required
        implementation("org.flywaydb:flyway-database-postgresql")
    }
    

    For Maven users.

    <dependency>
        <groupId>org.flywaydb</groupId>
        <artifactId>flyway-database-postgresql</artifactId>
    </dependency>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search