From: Alexander Ebert Date: Sun, 19 May 2013 19:43:34 +0000 (+0200) Subject: Added missing script X-Git-Tag: 2.0.0_Beta_1~141^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7461ea2345fb8dff207ea8dc6166a4b1d7bea5f9;p=GitHub%2FWoltLab%2FWCF.git Added missing script --- diff --git a/wcfsetup/install/files/acp/update_4.0.0_b1.php b/wcfsetup/install/files/acp/update_4.0.0_b1.php new file mode 100644 index 0000000000..a7b04f6d63 --- /dev/null +++ b/wcfsetup/install/files/acp/update_4.0.0_b1.php @@ -0,0 +1,48 @@ + + * @package com.woltlab.wcf + * @category Community Framework + */ +$packageList = new PackageList(); +$packageList->getConditionBuilder()->add("isApplication = 1"); +$packageList->readObjects(); + +$sql = "UPDATE wcf".WCF_N."_acp_template + SET application = ? + WHERE packageID = ?"; +$acpStatement = WCF::getDB()->prepareStatement($sql); + +$sql = "UPDATE wcf".WCF_N."_package_installation_file_log + SET application = ? + WHERE packageID = ?"; +$logStatement = WCF::getDB()->prepareStatement($sql); + +$sql = "UPDATE wcf".WCF_N."_template + SET application = ? + WHERE packageID = ?"; +$tplStatement = WCF::getDB()->prepareStatement($sql); + +foreach ($packageList as $package) { + $acpStatement->execute(array( + Package::getAbbreviation($package->package), + $package->packageID + )); + + $logStatement->execute(array( + Package::getAbbreviation($package->package), + $package->packageID + )); + + $tplStatement->execute(array( + Package::getAbbreviation($package->package), + $package->packageID + )); +}