Core/InternalModule.php
public function checkModuleVersions()
    {
        $sDatabaseVersion = $this->getModuleEntries(ModuleList::MODULE_KEY_VERSIONS);

        /**
         * Set version for disabled module
         */
        if (!count($sDatabaseVersion)) {
            $iLang = \OxidEsales\Eshop\Core\Registry::getLang()->getTplLanguage();
            $sDatabaseVersion = $this->getInfo("version", $iLang);
        }

        $aResult = $this->toResult(['version'=>$sDatabaseVersion]);

        return $aResult;
    }
public function checkModuleVersions()
    {
        $sDatabaseVersion = $this->getModuleEntries(ModuleList::MODULE_KEY_VERSIONS);

        /**
         * Set version for disabled module
         */
        if (!count($sDatabaseVersion)) {
            $iLang = \OxidEsales\Eshop\Core\Registry::getLang()->getTplLanguage();
            $sDatabaseVersion = $this->getInfo("version", $iLang);
        }

        $aResult = $this->toResult(['version'=>$sDatabaseVersion]);

        return $aResult;
    }
Analyze versions in metadata
checks if metadata version is same as database entry for metadata

@return array