Flyway maven plugin: Error, no migration could be resolved in the configured locations

Viewed 36

I am using flyway latest version, 9.3.0, to create tables in a postgres database which has many different schemas. However, my problem is related to locations parameter. I am using external cofiguration where i specify locations as:

flyway.locations=classpath:db/migration/schema_name

but I get the following error:

[ERROR] Schema "public" has version 5.0.1, but no migration could be resolved in the configured locations !

Here is my public.conf, which is the file i choose when running mvn migrate -Dflyway.configFiles=public.conf (schema = public):

flyway.url=jdbc:postgresql....
flyway.user=my-user
flyway.password=password
flyway.defaultSchema=public
flyway.baselineOnMigrate=true
flyway.locations=classpath:db/migration/public

Resources with sql scripts

The last and new script is not found...

Anyone can help?

0 Answers
Related