Skip to content

Commit

Permalink
Fix Liquibase.validate scope execution. (#5122)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert committed Oct 30, 2023
1 parent 7aea5d9 commit f3ac838
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions liquibase-standard/src/main/java/liquibase/Liquibase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1328,11 +1328,13 @@ public DiffResult diff(Database referenceDatabase, Database targetDatabase, Comp
*/
@Deprecated
public void validate() throws LiquibaseException {
new CommandScope("validate")
runInScope(() ->
new CommandScope("validate")
.addArgumentValue(DbUrlConnectionCommandStep.DATABASE_ARG, database)
.addArgumentValue(DatabaseChangelogCommandStep.CHANGELOG_FILE_ARG, changeLogFile)
.addArgumentValue(DatabaseChangelogCommandStep.CHANGELOG_PARAMETERS, changeLogParameters)
.execute();
.execute()
);
}

public void setChangeLogParameter(String key, Object value) {
Expand Down

0 comments on commit f3ac838

Please sign in to comment.