AmsterdamLuis
AmsterdamLuis

Reputation: 425

How to set up flyway default schema in Quarkus

I am checking the Quarkus guide for the flyway extension.

The default schema configuration is not listed and is not supported. I added in my application.properties

quarkus.flyway.default-schema=some_schema
quarkus.flyway.defaultSchema=some_schema

and tested, but it's not recognised. Is there a workaround or should an issue be created?

Upvotes: 3

Views: 1097

Answers (3)

Suresh
Suresh

Reputation: 565

For quarkus version 3 you have to specify flyway and jdbc data source schema separatly.

quarkus.flyway.default-schema=<schema_name>
quarkus.datasource.jdbc.url=jdbc:postgresql://<server>:<port>/<DB_name>?currentSchema=<schema_name>

Upvotes: 0

Lucas Noetzold
Lucas Noetzold

Reputation: 1740

got defaulted to

quarkus.flyway.default-schema=some_schema

just in case anyone is seeing this now

Upvotes: 1

geoand
geoand

Reputation: 64011

I have opened https://github.com/quarkusio/quarkus/pull/22957 to address this concern. If all goes well, this will make it into version 2.7.0.Final.

Upvotes: 2

Related Questions