Skip to content

Commit

Permalink
Replace deprecated class DbUrlConnectionCommandStep with DbUrlConnect…
Browse files Browse the repository at this point in the history
…ionArgumentsCommandStep
  • Loading branch information
steinarb committed Apr 25, 2024
1 parent 500565f commit 648dc66
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -24,7 +24,7 @@
import liquibase.command.CommandScope;
import liquibase.command.core.UpdateCommandStep;
import liquibase.command.core.helpers.DatabaseChangelogCommandStep;
import liquibase.command.core.helpers.DbUrlConnectionCommandStep;
import liquibase.command.core.helpers.DbUrlConnectionArgumentsCommandStep;
import liquibase.database.DatabaseFactory;
import liquibase.database.jvm.JdbcConnection;
import liquibase.exception.LiquibaseException;
Expand All @@ -44,7 +44,7 @@ public void applyChangelist(Connection connection, ClassLoader classLoader, Stri
Scope.Attr.resourceAccessor.name(), new ClassLoaderResourceAccessor(classLoader));

Scope.child(scopeObjects, (ScopedRunner<?>) () -> new CommandScope("update")
.addArgumentValue(DbUrlConnectionCommandStep.DATABASE_ARG, database)
.addArgumentValue(DbUrlConnectionArgumentsCommandStep.DATABASE_ARG, database)
.addArgumentValue(UpdateCommandStep.CHANGELOG_FILE_ARG, changelistClasspathResource)
.addArgumentValue(DatabaseChangelogCommandStep.CHANGELOG_PARAMETERS, new ChangeLogParameters(database))
.execute());
Expand Down

0 comments on commit 648dc66

Please sign in to comment.