From aa80518bab2b8c36c91b6cb8cf437110574d570e Mon Sep 17 00:00:00 2001 From: ZhuchkaTriplesix Date: Sun, 25 Oct 2026 22:13:00 +0300 Subject: [PATCH] fix(docker): the MySQL seed is read as utf8mb4, so the sample emoji text is stored as written (#1823) --- docker/mysql/init/01_shop.sql | 4 ++++ docker/mysql/init/02_all_types.sql | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docker/mysql/init/01_shop.sql b/docker/mysql/init/01_shop.sql index a5df51b0..1e9bbc58 100644 --- a/docker/mysql/init/01_shop.sql +++ b/docker/mysql/init/01_shop.sql @@ -1,3 +1,7 @@ +-- The entrypoint pipes this file through the mysql client, which reads it as +-- latin1 unless told otherwise: non-ASCII text would be stored double-encoded. +SET NAMES utf8mb4; + -- Demo schema for Querya manual testing (MySQL 8.4+). USE querya; diff --git a/docker/mysql/init/02_all_types.sql b/docker/mysql/init/02_all_types.sql index f2069593..83c4c5b5 100644 --- a/docker/mysql/init/02_all_types.sql +++ b/docker/mysql/init/02_all_types.sql @@ -1,3 +1,7 @@ +-- The entrypoint pipes this file through the mysql client, which reads it as +-- latin1 unless told otherwise: non-ASCII text would be stored double-encoded. +SET NAMES utf8mb4; + USE querya; -- Comprehensive MySQL Data Types Showcase Table