public function getUpgradeScript($machineName, $majorVersion, $minorVersion) {
    $upgrades = "/libraries/{$machineName}-{$majorVersion}.{$minorVersion}/upgrades.js";
    if (file_exists($this->path . $upgrades)) {
      return $upgrades;
    }
    else {
      return NULL;
    }
  }
public function getUpgradeScript($machineName, $majorVersion, $minorVersion) {
    $upgrades = "/libraries/{$machineName}-{$majorVersion}.{$minorVersion}/upgrades.js";
    if (file_exists($this->path . $upgrades)) {
      return $upgrades;
    }
    else {
      return NULL;
    }
  }
public function getUpgradeScript ( $ machineName , $ majorVersion , $ minorVersion ) { $ upgrades = "/libraries/{$machineName}-{$majorVersion}.{$minorVersion}/upgrades.js" ; if ( file_exists ( $ this -> path . $ upgrades ) ) { return $ upgrades ; } else { return NULL ; } }
Check if upgrades script exist for library.

@param string $machineName
@param int $majorVersion
@param int $minorVersion
@return string Relative path
Check if upgrades script exist for library .