Package liquibase.ext.hibernate.diff
Class UnexpectedIndexChangeGenerator
- java.lang.Object
-
- liquibase.diff.output.changelog.AbstractChangeGenerator
-
- liquibase.diff.output.changelog.core.UnexpectedIndexChangeGenerator
-
- liquibase.ext.hibernate.diff.UnexpectedIndexChangeGenerator
-
- All Implemented Interfaces:
liquibase.diff.output.changelog.ChangeGenerator,liquibase.diff.output.changelog.UnexpectedObjectChangeGenerator
public class UnexpectedIndexChangeGenerator extends liquibase.diff.output.changelog.core.UnexpectedIndexChangeGeneratorIndexes tend to be added in the database that don't correspond to what is in Hibernate, so we suppress all dropIndex changes based on indexes defined in the database but not in hibernate.
-
-
Constructor Summary
Constructors Constructor Description UnexpectedIndexChangeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description liquibase.change.Change[]fixUnexpected(liquibase.structure.DatabaseObject unexpectedObject, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain)intgetPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)-
Methods inherited from class liquibase.diff.output.changelog.core.UnexpectedIndexChangeGenerator
runAfterTypes, runBeforeTypes
-
Methods inherited from class liquibase.diff.output.changelog.AbstractChangeGenerator
fixOutputAsSchema, fixSchema, setRespectSchemaAndCatalogCase
-
-
-
-
Method Detail
-
getPriority
public int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)
- Specified by:
getPriorityin interfaceliquibase.diff.output.changelog.ChangeGenerator- Overrides:
getPriorityin classliquibase.diff.output.changelog.core.UnexpectedIndexChangeGenerator
-
fixUnexpected
public liquibase.change.Change[] fixUnexpected(liquibase.structure.DatabaseObject unexpectedObject, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain)- Specified by:
fixUnexpectedin interfaceliquibase.diff.output.changelog.UnexpectedObjectChangeGenerator- Overrides:
fixUnexpectedin classliquibase.diff.output.changelog.core.UnexpectedIndexChangeGenerator
-
-