Search code examples
javaspringspring-bootflyway

Flyway doesn't create schema version table in provided schema


I am working with flyway and spring boot. 2.x.x. I am able to execute successfully.

But flyway generates new schema based on my username and write flyway history table into that. As I want to be in my schema. For that I have set properties

    flyway.schemas=xyz

But it not creating that table into specified schema xyz.

Help will be appreciated.


Solution

  • I believe FlywayProperties are read from configuration properties with prefix spring.flyway

    spring.flyway.schemas=xyz