为 restore-old-sy-main-website 迁移补充 utf8mb4 字符集和 sp_gzhx_apps 库选择,避免同步脚本在未指定默认数据库时停在 No database selected。 Validation: - git diff --check -- local-run/migrations/2026-08-01-001-restore-old-sy-main-website.sql
@@ -2,6 +2,9 @@
-- Target: websiteid=10006, sy.hxcs.feifan.net (legacy production identity: sy.gzhxtc.edu.cn).
-- After execution, refresh the website-domain cache on both hxcs Tomcat nodes (restart both Tomcat containers if needed).
+SET NAMES utf8mb4;
+USE sp_gzhx_apps;
+
START TRANSACTION;
SELECT COUNT(*) INTO @target_count