def validate_compatible
      validate_upgradable

      @patches.each do |patch|
        signature = @dao.patch_signature(patch.name)
        next if signature == patch.signature
        raise NotAppliedError, patch if signature.nil?
        raise MismatchError, patch
      end
    end
def validate_compatible
      validate_upgradable

      @patches.each do |patch|
        signature = @dao.patch_signature(patch.name)
        next if signature == patch.signature
        raise NotAppliedError, patch if signature.nil?
        raise MismatchError, patch
      end
    end
Validates that all patches are applied to the database.

 May raise MismatchError, NotConfiguredError or NotAppliedError
 in case if there are any problems.