Add support for version upgrades (#4160)
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 28 Jun 2021 14:44:53 +0000 (16:44 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Jun 2021 14:44:53 +0000 (16:44 +0200)
commit7c79c22cb75279018124c9f265848e14f31f976a
treec57a10845a5745cb47489191fcebeed4b106b436
parentad53d882b40ecc60b8fe1929ae8ec7114919366a
Add support for version upgrades (#4160)

* Add WCF::AVAILABLE_UPGRADE_VERSION

* Expose the available upgrade version to packageList.tpl

* Show notice in packageList if an upgrade is available

* Add upgrade override support to PackageUpdateServer

* Show notice about enabled upgrade override in packageList and packageUpdateServerList

* Add PackageEnableUpgradeOverrideForm

* Support disabling the upgrade override if there are issues

* Add version checks from update_com.woltlab.wcf_5.4_checkSystemRequirements.php to PackageEnableUpgradeOverrideForm

* Add language items for WoltLab Suite upgrades

* Clear package lists when toggling the upgrade override

* Add requested-woltlab-suite-version header to package list requests

* Improved the messages and restrict the upgrade to the maintenance mode

* Restrict the experimental upgrade to the maintenance mode

* Removed the upgrade notice from the package server list

Co-authored-by: Alexander Ebert <ebert@woltlab.com>
wcfsetup/install/files/acp/templates/packageEnableUpgradeOverride.tpl [new file with mode: 0644]
wcfsetup/install/files/acp/templates/packageEnableUpgradeOverrideIssues.tpl [new file with mode: 0644]
wcfsetup/install/files/acp/templates/packageList.tpl
wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/acp/page/PackageListPage.class.php
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml