From: joshuaruesweg Date: Mon, 21 Mar 2022 13:06:44 +0000 (+0100) Subject: Add cleanup script to clean invalid excluded versions X-Git-Tag: 5.5.0_Alpha_1~59^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f18de1f27aae54b1c3057eebf8af17c3734ad5e;p=GitHub%2FWoltLab%2FWCF.git Add cleanup script to clean invalid excluded versions --- diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index ea78fba0a7..96d29c0b78 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -8,20 +8,20 @@ 5.5.0 Alpha 1 2022-02-15 - + WoltLab GmbH https://www.woltlab.com - + - + - + acp/install.php @@ -31,9 +31,9 @@ defaultStyle.tar - + - + @@ -46,7 +46,7 @@ - + acp/post_install.php @@ -101,6 +101,7 @@ tar cvf com.woltlab.wcf/files_pre_check.tar -C wcfsetup/install/files/ \ acp/update_com.woltlab.wcf_5.5_clearPackageDeprecations.php + acp/update_com.woltlab.wcf_5.5_cleanupPackageExclusion.php acp/update_com.woltlab.wcf_5.5_randomize_cronjobs.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5_cleanupPackageExclusion.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5_cleanupPackageExclusion.php new file mode 100644 index 0000000000..e12d961373 --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5_cleanupPackageExclusion.php @@ -0,0 +1,24 @@ + + * @package WoltLabSuite\Core + */ + +use wcf\system\WCF; + +$sql = "UPDATE wcf1_package_exclusion + SET excludedPackageVersion = ? + WHERE excludedPackageVersion = ?"; +$statement = WCF::getDB()->prepare($sql); +$statement->execute([ + '*', + '', +]);