Quarkus Flyway - all schemas do not sync at startup #31377
Unanswered
kirankolli-addepar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a unit test with a Postgres test container resource that is initialized and a test profile which overrides the "quarkus.datasource.jdbc.url" to point to the container I just started.
In this unit test I wanted to test my DAO class against the postgres resource that I have initialized.
As part of startup I rely on Quarkus Flyway to synchronise the schemas and I have this prop :
What I find is that on startup only 'schema1' is getting synced up but not schema2.
How do I resolve this ? The test fails because it cannot find the tables it intends to test against.
Update :
I have also tried the below but it did not work :
Adding a separate named datasource :
Then add migrate at start for that named datasource.
Tagging @geoand / @maxandersen for help
Beta Was this translation helpful? Give feedback.
All reactions