public class ChangelogRewriter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChangelogRewriter.ChangeLogRewriterResult |
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
XSD_FILE_PATTERN |
static String |
XSD_FILE_REGEX |
| Constructor and Description |
|---|
ChangelogRewriter() |
| Modifier and Type | Method and Description |
|---|---|
static ChangelogRewriter.ChangeLogRewriterResult |
addChangeLogId(String changeLogFile,
String changeLogId,
DatabaseChangeLog databaseChangeLog)
Add the changelog ID from the changelog file and update the XSD version
|
static ChangelogRewriter.ChangeLogRewriterResult |
removeChangeLogId(String changeLogFile,
String changeLogId,
DatabaseChangeLog databaseChangeLog)
Remove the changelog ID from the changelog file
|
public static final String XSD_FILE_REGEX
public static final Pattern XSD_FILE_PATTERN
public static ChangelogRewriter.ChangeLogRewriterResult removeChangeLogId(String changeLogFile, String changeLogId, DatabaseChangeLog databaseChangeLog)
changeLogFile - The changelog file we are updatingchangeLogId - The changelog ID we are removingdatabaseChangeLog - The DatabaseChangeLog object to reset the ID inpublic static ChangelogRewriter.ChangeLogRewriterResult addChangeLogId(String changeLogFile, String changeLogId, DatabaseChangeLog databaseChangeLog)
changeLogFile - The changelog file we are updatingchangeLogId - The changelog ID we are addingdatabaseChangeLog - The DatabaseChangeLog object to set the ID inCopyright © 2023 Liquibase.org. All rights reserved.