mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Use case sensitive collations
This commit is contained in:
parent
4103b1c470
commit
c5365dee56
@ -363,7 +363,6 @@ def setup(config_options):
|
||||
|
||||
db_config = {
|
||||
k: v for k, v in db_config.items()
|
||||
if not k.startswith("cp_")
|
||||
}
|
||||
|
||||
name = db_config.get("name", None)
|
||||
@ -372,7 +371,7 @@ def setup(config_options):
|
||||
"sql_mode": "TRADITIONAL",
|
||||
"charset": "utf8mb4",
|
||||
"use_unicode": True,
|
||||
"collation": "utf8mb4_general_ci",
|
||||
"collation": "utf8mb4_bin",
|
||||
})
|
||||
elif name == "sqlite3":
|
||||
db_config.setdefault("args", {}).update({
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user