0

command
flyway migrate -url=jdbc:postgresql://localhost:5432/Sport -user=postgres -password=1 -locations=db
does not migrate:

No migrations found. Are your locations set up correctly?

enter image description here

enter image description here

Markus Meyer
  • 3,327
  • 10
  • 22
  • 35

1 Answers1

0

It may be a problem with your locations configuration. When setting locations if you do not provide a location type prefix then it will assume the directory you have given is on the classpath. I'm assuming from your screenshots you're trying to read from the file system. Try changing to flyway migrate -url=jdbc:postgresql://localhost:5432/Sport -user=postgres -password=1 -locations=filesystem:./db

Barry
  • 369
  • 1
  • 6