From b892dd320de37b4a3d6b9b3e05601af8425e3e97 Mon Sep 17 00:00:00 2001 From: legna-namor Date: Mon, 9 Sep 2024 13:33:06 -0400 Subject: [PATCH] `Schema`: Remove collation from blob field Column defined as mediumblob with COLLATE utf8mb4_unicode_ci, which is the root cause of the issue. BLOB (Binary Large Object) data types don't support collations because they are meant to store binary data (i.e., raw bytes), which is not interpreted as text. --- schema/mysql/schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/mysql/schema.sql b/schema/mysql/schema.sql index ed4f76e..acaad28 100644 --- a/schema/mysql/schema.sql +++ b/schema/mysql/schema.sql @@ -1,7 +1,7 @@ CREATE TABLE annotation ( uuid binary(16) NOT NULL, name varchar(63) COLLATE utf8mb4_unicode_ci NOT NULL, - value mediumblob COLLATE utf8mb4_unicode_ci NOT NULL, + value mediumblob NOT NULL, PRIMARY KEY (uuid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;