Class ChangedUniqueConstraintChangeGenerator

java.lang.Object
liquibase.diff.output.changelog.AbstractChangeGenerator
liquibase.diff.output.changelog.core.ChangedUniqueConstraintChangeGenerator
liquibase.ext.hibernate.diff.ChangedUniqueConstraintChangeGenerator
All Implemented Interfaces:
liquibase.diff.output.changelog.ChangedObjectChangeGenerator, liquibase.diff.output.changelog.ChangeGenerator

public class ChangedUniqueConstraintChangeGenerator extends liquibase.diff.output.changelog.core.ChangedUniqueConstraintChangeGenerator
Unique attribute for unique constraints backing index can have different values dependending on the database implementation, so we suppress all unique constraint changes based on unique constraints.
  • Field Summary

    Fields inherited from interface liquibase.diff.output.changelog.ChangeGenerator

    EMPTY_CHANGE, PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    liquibase.change.Change[]
    fixChanged(liquibase.structure.DatabaseObject changedObject, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain)
     
    int
    getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)
     

    Methods inherited from class liquibase.diff.output.changelog.core.ChangedUniqueConstraintChangeGenerator

    createAddUniqueConstraintChange, createDropUniqueConstraintChange, runAfterTypes, runBeforeTypes

    Methods inherited from class liquibase.diff.output.changelog.AbstractChangeGenerator

    fixOutputAsSchema, fixSchema, setRespectSchemaAndCatalogCase

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface liquibase.diff.output.changelog.ChangeGenerator

    fixOutputAsSchema, fixSchema
  • Constructor Details

    • ChangedUniqueConstraintChangeGenerator

      public ChangedUniqueConstraintChangeGenerator()
  • Method Details

    • getPriority

      public int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)
      Specified by:
      getPriority in interface liquibase.diff.output.changelog.ChangeGenerator
      Overrides:
      getPriority in class liquibase.diff.output.changelog.core.ChangedUniqueConstraintChangeGenerator
    • fixChanged

      public liquibase.change.Change[] fixChanged(liquibase.structure.DatabaseObject changedObject, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain)
      Specified by:
      fixChanged in interface liquibase.diff.output.changelog.ChangedObjectChangeGenerator
      Overrides:
      fixChanged in class liquibase.diff.output.changelog.core.ChangedUniqueConstraintChangeGenerator