summaryrefslogtreecommitdiff
path: root/modules/extra/stats/m_chanstats.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-04-27 23:18:04 +0100
committerSadie Powell <sadie@witchery.services>2021-04-27 23:18:04 +0100
commit6274bd0b34e51c3540f0dd467ab6a98567c502f6 (patch)
tree9f5756568ac97a23c69b67e468668c8965aac367 /modules/extra/stats/m_chanstats.cpp
parent095a25d4731c7b2df73174eaedecae90aa1e610b (diff)
Use utf8mb4 instead of utf8 in chanstats and irc2sql.
The utf8 charset, confusingly, is an alias for utf8mb3 which is not a real UTF-8 encoding as it can only store three byte characters. The real UTF-8 charset is utf8mb4.
Diffstat (limited to 'modules/extra/stats/m_chanstats.cpp')
-rw-r--r--modules/extra/stats/m_chanstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/stats/m_chanstats.cpp b/modules/extra/stats/m_chanstats.cpp
index 716c24310..a9c9bb8ae 100644
--- a/modules/extra/stats/m_chanstats.cpp
+++ b/modules/extra/stats/m_chanstats.cpp
@@ -317,7 +317,7 @@ class MChanstats : public Module
"KEY `nick` (`nick`),"
"KEY `chan_` (`chan`),"
"KEY `type` (`type`)"
- ") ENGINE=MyISAM DEFAULT CHARSET=utf8;";
+ ") ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;";
this->RunQuery(query);
}
/* There is no CREATE OR REPLACE PROCEDURE in MySQL */