code: private function isAttributeNameOrTypeChanged(ModelInterface $new, ModelInterface $old)
      {
          return ($old->getProperty('type') !== $new->getProperty('type'))
              || ($old->getProperty('colname') !== $new->getProperty('colname'));
      }
docs: Check if either type or column name have been changed within the model.
  
  @param ModelInterface $new The new model.
  @param ModelInterface $old The old model (or null).
  
  @return bool