Class ChangedColumnChangeGenerator

  • All Implemented Interfaces:
    liquibase.diff.output.changelog.ChangedObjectChangeGenerator, liquibase.diff.output.changelog.ChangeGenerator

    public class ChangedColumnChangeGenerator
    extends liquibase.diff.output.changelog.core.ChangedColumnChangeGenerator
    Hibernate and database types tend to look different even though they are not. There are enough false positives that it works much better to suppress all column changes based on types.
    • Field Summary

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

        PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPriority​(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)  
      protected void handleDefaultValueDifferences​(liquibase.structure.core.Column column, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, List<liquibase.change.Change> changes, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase)  
      protected void handleTypeDifferences​(liquibase.structure.core.Column column, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, List<liquibase.change.Change> changes, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase)  
      • Methods inherited from class liquibase.diff.output.changelog.core.ChangedColumnChangeGenerator

        fixChanged, handleAutoIncrementDifferences, handleNullableDifferences, runAfterTypes, runBeforeTypes
      • Methods inherited from class liquibase.diff.output.changelog.AbstractChangeGenerator

        fixOutputAsSchema, fixSchema, setRespectSchemaAndCatalogCase
      • Methods inherited from interface liquibase.diff.output.changelog.ChangeGenerator

        fixOutputAsSchema, fixSchema
    • Constructor Detail

      • ChangedColumnChangeGenerator

        public ChangedColumnChangeGenerator()
    • Method Detail

      • 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.ChangedColumnChangeGenerator
      • handleTypeDifferences

        protected void handleTypeDifferences​(liquibase.structure.core.Column column,
                                             liquibase.diff.ObjectDifferences differences,
                                             liquibase.diff.output.DiffOutputControl control,
                                             List<liquibase.change.Change> changes,
                                             liquibase.database.Database referenceDatabase,
                                             liquibase.database.Database comparisonDatabase)
        Overrides:
        handleTypeDifferences in class liquibase.diff.output.changelog.core.ChangedColumnChangeGenerator
      • handleDefaultValueDifferences

        protected void handleDefaultValueDifferences​(liquibase.structure.core.Column column,
                                                     liquibase.diff.ObjectDifferences differences,
                                                     liquibase.diff.output.DiffOutputControl control,
                                                     List<liquibase.change.Change> changes,
                                                     liquibase.database.Database referenceDatabase,
                                                     liquibase.database.Database comparisonDatabase)
        Overrides:
        handleDefaultValueDifferences in class liquibase.diff.output.changelog.core.ChangedColumnChangeGenerator