From: Alexander Ebert Date: Thu, 15 Dec 2016 00:27:40 +0000 (+0100) Subject: Fixed charset conversion X-Git-Tag: 3.0.0_RC_1~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7569386ba672d132d4177d30358a9fd2b527402;p=GitHub%2FWoltLab%2FWCF.git Fixed charset conversion --- diff --git a/wcfsetup/install/files/lib/system/worker/DatabaseConvertEncodingWorker.class.php b/wcfsetup/install/files/lib/system/worker/DatabaseConvertEncodingWorker.class.php index d293bd38e2..a465887a47 100644 --- a/wcfsetup/install/files/lib/system/worker/DatabaseConvertEncodingWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/DatabaseConvertEncodingWorker.class.php @@ -54,6 +54,10 @@ class DatabaseConvertEncodingWorker extends AbstractWorker { $sql = "ALTER TABLE " . $table . " CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(); + + $sql = "ALTER TABLE " . $table . " DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci"; + $statement = WCF::getDB()->prepareStatement($sql); + $statement->execute(); } $statement = WCF::getDB()->prepareStatement("SET FOREIGN_KEY_CHECKS=1");