where("module","proxmoxAddon")->where("setting","version")->value("value"); } public function run(){ $version = $this->getVersion(); if($version && $this->getDatabaseVersion() != $version ){ if(!function_exists('proxmoxAddon_upgrade')){ require_once ModuleConstants::getFullPath() . DIRECTORY_SEPARATOR . "proxmoxAddon.php"; } if(function_exists('proxmoxAddon_upgrade')){ \proxmoxAddon_upgrade([ "module"=> "proxmoxAddon", "modulelink" => "addonmodules.php?module=proxmoxAddon", "version"=> $version, "access" => 1 ]); } } } }