From: Matthias Schmidt Date: Sat, 30 Jul 2016 11:39:24 +0000 (+0200) Subject: Remove obsolete wcf1_package_update_version.isCritical X-Git-Tag: 3.0.0_Beta_1~888 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06241ea6aee3213fa076e31f15b0c9ee1e2f35d4;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete wcf1_package_update_version.isCritical --- diff --git a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php index 8d6e5d103b..ccd115a322 100644 --- a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php +++ b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php @@ -18,7 +18,6 @@ use wcf\data\DatabaseObject; * @property-read string $license * @property-read string $licenseURL * @property-read integer $isAccessible - * @property-read integer $isCritical */ class PackageUpdateVersion extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index c3ebaaa378..42e8042e26 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -271,8 +271,7 @@ class PackageUpdateDispatcher extends SingletonFactory { foreach ($elements as $element) { $versionNo = $element->getAttribute('name'); $packageInfo['versions'][$versionNo] = [ - 'isAccessible' => ($element->getAttribute('accessible') == 'true' ? true : false), - 'isCritical' => ($element->getAttribute('critical') == 'true' ? true : false) + 'isAccessible' => ($element->getAttribute('accessible') == 'true' ? true : false) ]; $children = $xpath->query('child::*', $element); @@ -379,7 +378,6 @@ class PackageUpdateDispatcher extends SingletonFactory { 'license' => (isset($versionData['license']['license']) ? $versionData['license']['license'] : ''), 'licenseURL' => (isset($versionData['license']['license']) ? $versionData['license']['licenseURL'] : ''), 'isAccessible' => ($versionData['isAccessible'] ? 1 : 0), - 'isCritical' => ($versionData['isCritical'] ? 1 : 0), 'packageDate' => $versionData['packageDate'], 'packageUpdateID' => $packageUpdateID, 'packageVersion' => $packageVersion @@ -534,7 +532,7 @@ class PackageUpdateDispatcher extends SingletonFactory { $conditions->add("package IN (SELECT DISTINCT package FROM wcf".WCF_N."_package)"); $sql = "SELECT pu.packageUpdateID, pu.packageUpdateServerID, pu.package, - puv.packageUpdateVersionID, puv.isCritical, puv.packageDate, puv.filename, puv.packageVersion + puv.packageUpdateVersionID, puv.packageDate, puv.filename, puv.packageVersion FROM wcf".WCF_N."_package_update pu LEFT JOIN wcf".WCF_N."_package_update_version puv ON (puv.packageUpdateID = pu.packageUpdateID AND puv.isAccessible = 1) @@ -554,7 +552,6 @@ class PackageUpdateDispatcher extends SingletonFactory { // version data if (!isset($updates[$existingVersion['packageID']]['versions'][$row['packageVersion']])) { $updates[$existingVersion['packageID']]['versions'][$row['packageVersion']] = [ - 'isCritical' => $row['isCritical'], 'packageDate' => $row['packageDate'], 'packageVersion' => $row['packageVersion'], 'servers' => [] diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 133029dc3e..926a98a0fd 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -942,7 +942,6 @@ CREATE TABLE wcf1_package_update_version ( license VARCHAR(255) NOT NULL DEFAULT '', licenseURL VARCHAR(255) NOT NULL DEFAULT '', isAccessible TINYINT(1) NOT NULL DEFAULT 1, - isCritical TINYINT(1) NOT NULL DEFAULT 0, UNIQUE KEY packageUpdateID (packageUpdateID, packageVersion) );