Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / acp / update_com.woltlab.wcf_5.3_emailConfirmation.php
1 <?php
2 use wcf\system\WCF;
3
4 /**
5 * @author Joshua Ruesweg
6 * @copyright 2001-2019 WoltLab GmbH
7 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
8 * @package WoltLabSuite\Core
9 */
10
11 // HEADS UP: This script must be executed, AFTER the SQL tables are changed.
12
13 $sql = "UPDATE wcf". WCF_N ."_user
14 SET emailConfirmed = activationCode
15 WHERE activationCode <> 0";
16
17 $statement = WCF::getDB()->prepareStatement($sql);
18 $statement->execute();