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

Addition of liquibase.update() #1614

Closed
Betlista opened this issue Jan 4, 2021 · 2 comments · Fixed by #1638
Closed

Addition of liquibase.update() #1614

Betlista opened this issue Jan 4, 2021 · 2 comments · Fixed by #1638

Comments

@Betlista
Copy link
Contributor

Betlista commented Jan 4, 2021

Environment

Liquibase Version: 4.2.2

Liquibase Integration & Version: Spring Boot 2.2.2

Liquibase Extension(s) & Version: N/A

Database Vendor & Version: HSQLDB

Operating System Type & Version: Win 10

Description

This is a request for enahancement.

I tried to implement liquibase update programatically in Spring Boot application and I found that liquibase.Liquibase.update() requires a parameter(s), but it is accepting "" as well as null, so I believe there should be version without parameter provided. It's confusing that context is required, while from command line for example it is not.

Steps To Reproduce

File file = changelogResource.getFile();
File parentFile = file.getParentFile();
Liquibase liquibase = new Liquibase(file.getName(), new FileSystemResourceAccessor(parentFile), getDatabase());
liquibase.update((String)null);

Actual Behavior

liquibase.Liquibase.update() requires a parameter(s)

Expected/Desired Behavior

There will be liquibase.Liquibase.update() version without a parameter in API.

Screenshots (if appropriate)

N/A

Additional Context

N/A

Betlista pushed a commit to Betlista/liquibase that referenced this issue Jan 4, 2021
Added `.update()` + some JavaDocs.
@molivasdat
Copy link
Contributor

Hi @Betlista Thanks for adding this issue. We will add it to the list of enhancements we are processing.

@tabbyf00
Copy link

Thanks for your PR submission! We just finished reviewing and merging it into the 4.17.0 release on October 10, 2022. We appreciate your contribution!

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

Successfully merging a pull request may close this issue.

4 participants