docs(sxsy80): 迁移文档、清理脚本与 wa_merchandise 提取工具

补充数据迁移说明与 cleanup SQL;增加从 dump 提取保留 id 与生成 INSERT 的脚本及产物。

Made-with: Cursor
This commit is contained in:
apple
2026-04-27 12:13:19 +08:00
parent 901bf6f500
commit 5c4450c417
7 changed files with 272 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
-- 仅处理 wa_merchandise与 com-sxsy80-data-imgration.md 一致
-- 从源 dump 解析应保留的 id 列表(见 wa_merchandise_keep_ids_from_dump_sxsy80.txt删除库中 id 不在此集合的所有行。
SET NAMES utf8mb4;
START TRANSACTION;
DELETE FROM `wa_merchandise`
WHERE `id` NOT IN (
163212,163213,163214,163223,163224,163225,163226,163231,163234,163235,163237,163239,163244,163245,163246,163254,163255,163259
);
COMMIT;