From e15890c3fee2fda9387041334d1041d236846db5 Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Sat, 23 Aug 2025 20:05:19 -0700 Subject: [PATCH] nixos/mattermost: remove fallback charset for MySQL This was causing issues on newer versions of MariaDB (breaking NixOS tests) like: ``` Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%2Cutf8' at line 1 ``` Since this is simply a fallback character set and all supported versions of MariaDB support utf8mb4, delete the fallback. This change should be fully compatible with existing deployments. (cherry picked from commit 6cc8a8cdb582660c8f33f23ad949f4a5da07ee7a) --- nixos/modules/services/web-apps/mattermost.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/mattermost.nix b/nixos/modules/services/web-apps/mattermost.nix index 83c9181ff302..f3d3be43eabc 100644 --- a/nixos/modules/services/web-apps/mattermost.nix +++ b/nixos/modules/services/web-apps/mattermost.nix @@ -668,7 +668,7 @@ in } else if cfg.database.driver == "mysql" then { - charset = "utf8mb4,utf8"; + charset = "utf8mb4"; writeTimeout = "60s"; readTimeout = "60s"; } @@ -682,7 +682,7 @@ in } else if config.mattermost.database.driver == "mysql" then { - charset = "utf8mb4,utf8"; + charset = "utf8mb4"; writeTimeout = "60s"; readTimeout = "60s"; }