From: joshuaruesweg Date: Sat, 13 Jun 2020 14:57:51 +0000 (+0200) Subject: Add update script X-Git-Tag: 5.3.0_Alpha_1~182^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63d685297d31745261ae9dbcca802e1664c20a7f;p=GitHub%2FWoltLab%2FWCF.git Add update script --- diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_emailConfirmation.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_emailConfirmation.php new file mode 100644 index 0000000000..4ad2593c0d --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_emailConfirmation.php @@ -0,0 +1,18 @@ + + * @package WoltLabSuite\Core + */ + +// HEADS UP: This script must be executed, AFTER the SQL tables are changed. + +$sql = "UPDATE wcf". WCF_N ."_user + SET emailConfirmed = activationCode + WHERE activationCode <> 0"; + +$statement = WCF::getDB()->prepareStatement($sql); +$statement->execute();