Do not store API compatibility information within the database
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 5 Jul 2021 14:17:49 +0000 (16:17 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 7 Jul 2021 11:45:29 +0000 (13:45 +0200)
These are automatically converted into an exclude of Core 6.0.0 Alpha 1 in
PackageArchive and thus redundant.

wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index a7327023843de705c78c9b39812cfabc7812776c..08121ddf71ee7cae3e5a75bc329597ab6d598fae 100644 (file)
@@ -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)) {