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

Properly support subfolders for Flyway database migrations #11300

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Aug 10, 2020

Fix #11288

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

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

Seems reasonable assuming tests pass 😎

@gsmet gsmet force-pushed the flyway-subfolder branch from 5d7655a to c715ba3 Compare August 10, 2020 12:27
@gastaldi gastaldi merged commit 24306ef into quarkusio:master Aug 10, 2020
@gsmet gsmet added this to the 1.7.1.Final milestone Aug 24, 2020
@rmanibus
Copy link
Contributor

rmanibus commented Sep 1, 2020

This does not work in a Jar !

@geoand
Copy link
Contributor

geoand commented Sep 1, 2020

@rmanibus do you have a reproducer?

If so, please open an issue and add it so we can fix this

return pathStream.filter(Files::isRegularFile)
.map(it -> Paths.get(location, it.getFileName().toString()).toString())
.map(it -> Paths.get(location, rootPath.relativize(it).toString()).toString())
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not work in a Jar !
I get unable to optain inputstream for resource:
db/migration/oracle/../oracle/<migration_name>.sql

with quarkus/flyway.locations=db/migration/oracle

Copy link
Contributor

Choose a reason for hiding this comment

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

I will try to make a reproducer yes

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks

Copy link
Member Author

Choose a reason for hiding this comment

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

Please open a separate issue with a reproducer so that we can easily track it.

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Please see #11780

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

Successfully merging this pull request may close these issues.

Flyway Plugin does not include version subfolder in script path
4 participants