From: Tim Düsterhus Date: Mon, 5 Jul 2021 14:17:49 +0000 (+0200) Subject: Do not store API compatibility information within the database X-Git-Tag: 5.5.0_Alpha_1~542^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b649e8920b36205e1d7474f497901ed9b358c5a3;p=GitHub%2FWoltLab%2FWCF.git Do not store API compatibility information within the database These are automatically converted into an exclude of Core 6.0.0 Alpha 1 in PackageArchive and thus redundant. --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index a732702384..08121ddf71 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -611,21 +611,6 @@ class PackageInstallationDispatcher } } - // save compatible versions - if (!empty($this->getArchive()->getCompatibleVersions())) { - $sql = "INSERT INTO wcf" . WCF_N . "_package_compatibility - (packageID, version) - VALUES (?, ?)"; - $statement = WCF::getDB()->prepareStatement($sql); - - foreach ($this->getArchive()->getCompatibleVersions() as $version) { - $statement->execute([ - $this->queue->packageID, - $version, - ]); - } - } - // insert requirements and dependencies $requirements = $this->getArchive()->getAllExistingRequirements(); if (!empty($requirements)) {