Package liquibase.util
Class ValidatingVisitorUtil
- java.lang.Object
-
- liquibase.util.ValidatingVisitorUtil
-
public class ValidatingVisitorUtil extends Object
Util class to offload methods that are used byValidatingVisitorclass and may make it more complex than it should be
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanvalidateMongoDbExtensionIssue(ChangeSet changeSet, RanChangeSet ranChangeSet, DatabaseChangeLog databaseChangeLog, Database database)MongoDB's extension was incorrectly messing with CreateIndex and DropIndex checksums when the extension was added to the lib folder but a database other than mongodb was used.
-
-
-
Method Detail
-
validateMongoDbExtensionIssue
public static boolean validateMongoDbExtensionIssue(ChangeSet changeSet, RanChangeSet ranChangeSet, DatabaseChangeLog databaseChangeLog, Database database)
MongoDB's extension was incorrectly messing with CreateIndex and DropIndex checksums when the extension was added to the lib folder but a database other than mongodb was used. This method checks: * is it a CreateIndex or DropIndex change? * are we not using mongo? * do we have mongo extension loaded? * If I use CreateIndex or DropIndex from mongo extension, does the checksum matches? If everything matches than we fix the checksum on the database and say it's fine to continue.
-
-