muyu-apiserver/deploy/mysql/migrations/20260407_fix_menu_mojibake.sql
Chever John 379fb28d92 chore: sync codebase with upstream
Align origin/main with upstream/main (GitHub). The two branches
diverged due to pre-rebase vs post-rebase merge commits for the
k8s-amd64-dockerfiles feature.

Includes: multi-stage Go compilation Dockerfiles, pan-bolt
inventory features, CRM relations, Excel import tooling,
proto/gRPC updates, migration scripts, and tools/ directory.

Excludes deploy/bin/ pre-compiled binaries (arm64, not needed
for amd64 K3s cluster; builds use multi-stage Dockerfiles now).
2026-06-14 15:24:02 +08:00

10 lines
450 B
SQL

-- Fix double-encoded (CP1252→UTF-8) menu_name for pans/bolts entries
-- Root cause: these records were inserted through a connection that
-- misinterpreted UTF-8 bytes as CP1252, causing mojibake.
SET NAMES utf8mb4;
USE `muyu_wms`;
UPDATE `sys_menu` SET `menu_name` = '盘库存' WHERE `menu_id` = 'm_207' AND `path` = '/inventory/pans';
UPDATE `sys_menu` SET `menu_name` = '匹库存' WHERE `menu_id` = 'm_208' AND `path` = '/inventory/bolts';