Skip to content

Commit

Permalink
Merge pull request #9874 from Fadelis/feature/liquibase-contexts
Browse files Browse the repository at this point in the history
[#9872] LiquibaseDatabase should use provided contexts on update
  • Loading branch information
lukaseder committed Feb 25, 2020
2 parents c15f770 + fdb4bbd commit eaeb60e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public class LiquibaseDatabase extends AbstractInterpretingDatabase {
@Override
protected void export() throws Exception {
String scripts = getProperties().getProperty("scripts");
includeLiquibaseTables = Boolean.valueOf(getProperties().getProperty("includeLiquibaseTables", "false"));
String liquibaseContexts = getProperties().getProperty("contexts", "");
includeLiquibaseTables = Boolean.parseBoolean(getProperties().getProperty("includeLiquibaseTables", "false"));

if (isBlank(scripts)) {
scripts = "";
Expand Down Expand Up @@ -126,7 +127,7 @@ protected void export() throws Exception {
}

Liquibase liquibase = new Liquibase(scripts, new FileSystemResourceAccessor(), database);
liquibase.update("");
liquibase.update(liquibaseContexts);
}

@Override
Expand Down

0 comments on commit eaeb60e

Please sign in to comment.