Skip to content

Commit

Permalink
Redirect Liquibase summary to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SCadilhac committed Dec 17, 2023
1 parent 6e90cd5 commit 4ba17d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/onl/netfishers/netshot/database/Database.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@
import org.jasypt.hibernate5.encryptor.HibernatePBEEncryptorRegistry;
import org.slf4j.MarkerFactory;

import liquibase.UpdateSummaryOutputEnum;
import liquibase.command.CommandScope;
import liquibase.command.core.UpdateCommandStep;
import liquibase.command.core.helpers.DbUrlConnectionCommandStep;
import liquibase.command.core.helpers.ShowSummaryArgument;
import liquibase.database.DatabaseFactory;
import liquibase.database.jvm.JdbcConnection;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -221,6 +223,7 @@ public static void update() {
new CommandScope(UpdateCommandStep.COMMAND_NAME)
.addArgumentValue(DbUrlConnectionCommandStep.DATABASE_ARG, database)
.addArgumentValue(UpdateCommandStep.CHANGELOG_FILE_ARG, "migration/netshot0.xml")
.addArgumentValue(ShowSummaryArgument.SHOW_SUMMARY_OUTPUT, UpdateSummaryOutputEnum.LOG)
.execute();
}
}
Expand Down

0 comments on commit 4ba17d4

Please sign in to comment.