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

Add ability to load configuration files directly from Flyway API #1780

Closed
jakaarl opened this issue Sep 27, 2017 · 1 comment
Closed

Add ability to load configuration files directly from Flyway API #1780

jakaarl opened this issue Sep 27, 2017 · 1 comment
Assignees
Milestone

Comments

@jakaarl
Copy link

jakaarl commented Sep 27, 2017

When constructing a new Flyway instance using the Java API and not providing a configuration, Flyway simply fails instead of looking for a configuration using the same rules as the command line. I was expecting not providing a configuration to cause the "normal" lookup.

Please consider using the same lookup as CLI when no configuration is given explicitly. Since people are used to how it works (or, not works for us who expected it to behave similarly to the command line client), it would probably make sense to have a method for enabling automatic lookup?

@axelfontaine
Copy link
Contributor

I am not sure the automatic part would be a good addition as this would vastly change the behavior of millions of installations. However, providing an easy method to load configuration files from disk as part of the core could be a nice low hanging fruit.

@axelfontaine axelfontaine changed the title Flyway API should look up configuration automatically Add ability to load configuration files directly from Flyway API Sep 28, 2017
@axelfontaine axelfontaine added this to the Flyway 5.1.0 milestone Nov 14, 2017
@juliahayward juliahayward modified the milestones: Flyway 6.x, Flyway 6.3 Feb 25, 2020
@Lyeeedar Lyeeedar self-assigned this Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants