Reputation: 443
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.
Upvotes: 2
Views: 1534
Reputation: 228
The default configuration file name is flyway.properties and it should reside in the same directory as the pom.xml file. Encoding is specified by flyway.encoding (Default is UTF-8).
flyway.user=databaseUser
flyway.password=databasePassword
flyway.schemas=schemaName
Also, as @Benoit commented, the user should have proper access rights for the specified schema.
Upvotes: 1
Reputation: 874
I believe FlywayProperties are read from configuration properties with prefix spring.flyway
spring.flyway.schemas=xyz
Upvotes: 5
Reputation: 5394
This behavior does not come from flyway but rather from the underlying database.
Check that this user has the proper rights to:
Upvotes: 0