From 0def9e991f8ef8ac074ce4913936129e4b528901 Mon Sep 17 00:00:00 2001
From: onli <onli@paskuda.biz>
Date: Thu, 28 May 2020 11:58:26 +0200
Subject: [PATCH] MySQL: Set charse tto ut8mb4, needed for some versions (#394)

---
 include/db/mysqli.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/db/mysqli.inc.php b/include/db/mysqli.inc.php
index bbe4937a..61769534 100644
--- a/include/db/mysqli.inc.php
+++ b/include/db/mysqli.inc.php
@@ -280,7 +280,7 @@ function serendipity_db_schema_import($query) {
           $serendipity['POST']['charset'] == 'UTF-8/' ||
           LANG_CHARSET == 'UTF-8' ) {
         if (serendipity_utf8mb4_ready()) {
-            $replace[] = 'ROW_FORMAT=DYNAMIC /*!40100 CHARACTER SET utf8 COLLATE utf8mb4_unicode_ci */';
+            $replace[] = 'ROW_FORMAT=DYNAMIC /*!40100 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */';
         } else {
             # in old versions we stick to the three byte pseudo utf8 to not trip
             # over the max index restriction of 1000 bytes