summary refs log tree commit diff
path: root/synapse/storage/engines/maria.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-10 18:46:33 +0100
committerErik Johnston <erik@matrix.org>2015-04-10 18:46:33 +0100
commitc5365dee564ffcf46300d1f979212e0ebaf98692 (patch)
treed02d090ee1421fdb7560b085f0b4797a3b2cfa76 /synapse/storage/engines/maria.py
parentDROP indexes before recreating them (diff)
downloadsynapse-c5365dee564ffcf46300d1f979212e0ebaf98692.tar.xz
Use case sensitive collations
Diffstat (limited to 'synapse/storage/engines/maria.py')
-rw-r--r--synapse/storage/engines/maria.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/engines/maria.py b/synapse/storage/engines/maria.py
index c934376930..90165f6849 100644
--- a/synapse/storage/engines/maria.py
+++ b/synapse/storage/engines/maria.py
@@ -36,7 +36,7 @@ class MariaEngine(object):
     def prepare_database(self, db_conn):
         cur = db_conn.cursor()
         cur.execute(
-            "ALTER DATABASE CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"
+            "ALTER DATABASE CHARACTER SET utf8mb4 COLLATE utf8mb4_bin"
         )
         db_conn.commit()
         prepare_database(db_conn, self)