Fixed handling of compatible versions during the setup
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 11:52:51 +0000 (13:52 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 11:52:51 +0000 (13:52 +0200)
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index fcf9c6d90c3c081a6ef6f9ae02ae51b6a76e7c97..ace7afc007da7559e2c9ee24a7b9336633adb54a 100644 (file)
@@ -388,6 +388,12 @@ class PackageInstallationDispatcher {
                        $statement = WCF::getDB()->prepareStatement($sql);
                        $statement->execute([$this->queue->packageID]);
                        
+                       // delete old compatibility versions
+                       $sql = "DELETE FROM     wcf".WCF_N."_package_compatibility
+                               WHERE           packageID = ?";
+                       $statement = WCF::getDB()->prepareStatement($sql);
+                       $statement->execute([$this->queue->packageID]);
+                       
                        // delete old requirements and dependencies
                        $sql = "DELETE FROM     wcf".WCF_N."_package_requirement
                                WHERE           packageID = ?";