Removed the update file for 5.3
authorAlexander Ebert <ebert@woltlab.com>
Wed, 23 Dec 2020 18:18:16 +0000 (19:18 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 23 Dec 2020 18:18:16 +0000 (19:18 +0100)
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_packageServer.php [deleted file]

diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_packageServer.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_packageServer.php
deleted file mode 100644 (file)
index 9aed268..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-namespace wcf\acp;
-use wcf\data\package\update\server\PackageUpdateServerEditor;
-use wcf\system\WCF;
-
-// Do not use the `PackageUpdateServer` classes because we need to access
-// the raw server URL that is implicitly rewritten in 5.3.
-$sql = "SELECT  *
-       FROM    wcf1_package_update_server
-       WHERE   LOWER(serverURL) REGEXP 'https?://(store|update)\.woltlab\.com/.*'";
-$statement = WCF::getDB()->prepareStatement($sql);
-$statement->execute();
-
-$deleteServerIDs = [];
-while ($row = $statement->fetchArray()) {
-       if (!preg_match("~^https?://(?:store|update)\.woltlab\.com/5\.3/~", $row["serverURL"])) {
-               $deleteServerIDs[] = $row["packageUpdateServerID"];
-       }
-}
-
-if (!empty($deleteServerIDs)) {
-       PackageUpdateServerEditor::deleteAll($deleteServerIDs);
-}