I am just learning Spring Boot with Maven and I have encountered an error that I cannot resolve. I have attached a dependency from Flyway and when I want to install it (I'm clicking install on Lifecycle), I get this error:
Found non-empty schema(s) "PUBLIC" but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table.
What could be causing this and how to fix it?
I'm using Java 8 and my dependency with Flyway looks like this:
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>