[#9872] LiquibaseDatabase should use provided contexts on update
This commit is contained in:
parent
c15f770d42
commit
fdb4bbd79d
@ -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 = "";
|
||||
@ -126,7 +127,7 @@ public class LiquibaseDatabase extends AbstractInterpretingDatabase {
|
||||
}
|
||||
|
||||
Liquibase liquibase = new Liquibase(scripts, new FileSystemResourceAccessor(), database);
|
||||
liquibase.update("");
|
||||
liquibase.update(liquibaseContexts);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user