public function upgrade($from, array $options = array()){
	    
	    $to = $this->utils()->getModuleVersion($this->getName());
	    
	    if(SoftwareVersion::compare($to, $from) <= 0){
	        throw new Exception\IllegalVersionException(
                sprintf('Unable to upgrade %s to version %s', $this->getName().' '.$to, $from)
            );
	    }
	    
	    return true;
	}
public function upgrade($from, array $options = array()){
	    
	    $to = $this->utils()->getModuleVersion($this->getName());
	    
	    if(SoftwareVersion::compare($to, $from) <= 0){
	        throw new Exception\IllegalVersionException(
                sprintf('Unable to upgrade %s to version %s', $this->getName().' '.$to, $from)
            );
	    }
	    
	    return true;
	}
public function upgrade ( $ from , array $ options = array ( ) ) { $ to = $ this -> utils ( ) -> getModuleVersion ( $ this -> getName ( ) ) ; if ( SoftwareVersion :: compare ( $ to , $ from ) <= 0 ) { throw new Exception \ IllegalVersionException ( sprintf ( 'Unable to upgrade %s to version %s' , $ this -> getName ( ) . ' ' . $ to , $ from ) ) ; } return true ; }
Upgrade module from previous version

This method should be invoked only after the new
version has been loaded. This method should also ignore
any values of $from that indicate version number that
is greater than or equal to current version.

This method should ensure backwards compatibility and
prepare data from previous version for the current
version.

@param string $from Version information
@param array $options
@return boolean True on success

@ValuService\Context({"cli", "http", "http-post"})
@ValuServiceAcl\Superuser
Upgrade module from previous version