Fixed charset conversion
authorAlexander Ebert <ebert@woltlab.com>
Thu, 15 Dec 2016 00:27:40 +0000 (01:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 15 Dec 2016 00:27:46 +0000 (01:27 +0100)
wcfsetup/install/files/lib/system/worker/DatabaseConvertEncodingWorker.class.php

index d293bd38e2b13f0be29ba4357ba6380f7fb92193..a465887a477e8c807586a526a80ace0ba18acc83 100644 (file)
@@ -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");