Skip to content

Commit

Permalink
Merge pull request #1565 from liquibase/DAT-6116
Browse files Browse the repository at this point in the history
Do not register JSON with extra spaces in front of changeLogId  DAT-6116
  • Loading branch information
nvoxland committed Dec 3, 2020
2 parents 7c43521 + 701a7ad commit 5e40163
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ protected CommandResult run() throws Exception {

} else if (changeLogFile.toLowerCase().endsWith(".json")) {
changeLogString = changeLogString.replaceFirst("\\[", "\\[\n" +
"\" changeLogId\"" + ":" + "\"" + hubChangeLog.getId().toString() + "\",\n");
"\"changeLogId\"" + ":" + "\"" + hubChangeLog.getId().toString() + "\",\n");
} else if (changeLogFile.toLowerCase().endsWith(".yml") || changeLogFile.toLowerCase().endsWith(".yaml")) {
changeLogString = changeLogString.replaceFirst("^databaseChangeLog:\n", "databaseChangeLog:\n" +
"- changeLogId: " + hubChangeLog.getId().toString() + "\n");
Expand Down

0 comments on commit 5e40163

Please sign in to comment.