MySQL: Set charse tto ut8mb4, needed for some versions (#394)

This commit is contained in:
onli 2020-05-28 11:58:26 +02:00
parent 0409717586
commit 0def9e991f

View File

@ -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