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 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

@axelfontaine axelfontaine commented Sep 28, 2017

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
@axelfontaine axelfontaine removed this from the Flyway 5.1.0 milestone May 23, 2018
@axelfontaine axelfontaine added this to the Flyway 5.2.0 milestone May 23, 2018
@axelfontaine axelfontaine removed this from the Flyway 5.2.0 milestone Sep 25, 2018
@axelfontaine axelfontaine added this to the Flyway 6.0.0 milestone Sep 25, 2018
@juliahayward juliahayward removed this from the Flyway 6.0.0 milestone Jul 31, 2019
@juliahayward juliahayward added this to the Flyway 6.1.0 milestone Jul 31, 2019
@juliahayward juliahayward removed this from the Flyway 6.1.0 milestone Nov 25, 2019
@juliahayward juliahayward added this to the Flyway 6.2.0 milestone Nov 25, 2019
@juliahayward juliahayward removed this from the Flyway 6.x milestone Feb 25, 2020
@juliahayward juliahayward added this to the Flyway 6.3 milestone 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