Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flyway): multiple datasource migration does not work on native #8065

Merged
merged 3 commits into from
Mar 24, 2020

Conversation

machi1990
Copy link
Member

The QuarkusPathLocationScanner returned all migrations locations by default, this risked to cause
collision when we have a same filename for a migration script which is handled by different
datasources - a behaviour encountered on the issue #7685. Let's avoid this case by making sure that
the scanner only returns migration that it can recognize.

Fixes #7685

/cc @yanxuehe this should fix the issue for you.

The QuarkusPathLocationScanner returned all migrations locations by default, this risked to cause
collision when we have a same filename for a migration script which is handled by different
datasources - a behaviour encountered on the issue quarkusio#7685. Let's avoid this case by making sure that
the scanner only returns migration that it can recognize.

Fixes quarkusio#7685
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a couple of suggestions, not all related to your change though.

@gastaldi gastaldi added this to the 1.4.0 milestone Mar 24, 2020
@gsmet gsmet merged commit 8df8855 into quarkusio:master Mar 24, 2020
@gsmet
Copy link
Member

gsmet commented Mar 24, 2020

Thanks @machi1990 !

@gsmet
Copy link
Member

gsmet commented Mar 24, 2020

@machi1990 btw, we have the same weird pattern of writing files in the Liquibase extension. Maybe we could get rid of it too?

@machi1990
Copy link
Member Author

@machi1990 btw, we have the same weird pattern of writing files in the Liquibase extension. Maybe we could get rid of it too?

Sure, I'll look at it. Thanks for the review 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flyway multiple datasource migration does not work on native
3 participants