Skip to content

Commit

Permalink
Schema: Remove collation from blob field
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
legna-namor authored and lippserd committed Sep 23, 2024
1 parent 49000b8 commit b892dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/mysql/schema.sql
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit b892dd3

Please sign in to comment.