Skip to content

Commit

Permalink
Replace deprecated constant in H2LiquibaseExtension (#463)
Browse files Browse the repository at this point in the history
Use DATABASE_ARG in DbUrlConnectionArgumentsCommandStep
instead of the deprecated one in DbUrlConnectionCommandStep.
  • Loading branch information
sleberknight authored Feb 7, 2024
1 parent ce4ef85 commit b0f10b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import liquibase.command.CommandScope;
import liquibase.command.core.UpdateCommandStep;
import liquibase.command.core.helpers.DbUrlConnectionCommandStep;
import liquibase.command.core.helpers.DbUrlConnectionArgumentsCommandStep;
import liquibase.database.Database;
import liquibase.database.DatabaseFactory;
import liquibase.database.jvm.JdbcConnection;
Expand Down Expand Up @@ -129,7 +129,7 @@ public void beforeAll(ExtensionContext context) throws Exception {

private static void runLiquibaseUpdate(Database database, String changeLogLocation) throws CommandExecutionException {
var updateCommand = new CommandScope(UpdateCommandStep.COMMAND_NAME)
.addArgumentValue(DbUrlConnectionCommandStep.DATABASE_ARG, database)
.addArgumentValue(DbUrlConnectionArgumentsCommandStep.DATABASE_ARG, database)
.addArgumentValue(UpdateCommandStep.CHANGELOG_FILE_ARG, changeLogLocation);
updateCommand.execute();
}
Expand Down

0 comments on commit b0f10b9

Please sign in to comment.