From b649e8920b36205e1d7474f497901ed9b358c5a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 5 Jul 2021 16:17:49 +0200 Subject: [PATCH] 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. --- .../PackageInstallationDispatcher.class.php | 15 --------------- 1 file changed, 15 deletions(-) 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)) { -- 2.20.1