|
|
@@ -1,50 +1,48 @@
|
|
|
-# 旧物品模块废弃说明
|
|
|
+# 旧物品模块表迁移指南
|
|
|
|
|
|
-## 1. 模块重构说明
|
|
|
-原`GameItems`模块已拆分为四个全新独立模块:
|
|
|
+## 1. 模块重构概述
|
|
|
+原`GameItems`模块已拆分为四个独立模块:
|
|
|
- **Item**: 基础物品管理
|
|
|
- **ItemChest**: 宝箱系统
|
|
|
- **ItemCraft**: 物品合成
|
|
|
- **ItemDismantle**: 物品分解
|
|
|
|
|
|
-## 2. 旧表废弃清单
|
|
|
-**所有旧表已废弃,新系统不进行数据迁移**
|
|
|
+## 2. 数据表迁移总表
|
|
|
|
|
|
-| 旧表名 | 废弃说明 |
|
|
|
-|--------|----------|
|
|
|
-| **基础物品表** | |
|
|
|
-| item_items | 新系统重新设计物品结构 |
|
|
|
-| item_categories | 分类系统完全重构 |
|
|
|
-| item_instances | 单独属性物品新存储方案 |
|
|
|
-| item_users | 用户物品关联关系重构 |
|
|
|
-| **宝箱系统表** | |
|
|
|
-| item_chest_configs | 宝箱配置全新设计 |
|
|
|
-| item_pity_times | 保底机制重新实现 |
|
|
|
-| item_chest_open_logs | 日志系统重构 |
|
|
|
-| **物品合成表** | |
|
|
|
-| item_recipes | 合成配方全新设计 |
|
|
|
-| item_recipe_materials | 材料需求新结构 |
|
|
|
-| item_user_recipes | 用户配方解锁新方案 |
|
|
|
-| item_craft_logs | 合成日志新格式 |
|
|
|
-| **物品分解表** | |
|
|
|
-| item_dismantle_rules | 分解规则重新设计 |
|
|
|
-| item_dismantle_logs | 分解日志新格式 |
|
|
|
-| **物品变更日志** | |
|
|
|
-| item_transaction_logs | 事务日志系统重构 |
|
|
|
-| **特殊处理表** | |
|
|
|
-| item_groups | 组系统由Game模块重构 |
|
|
|
-| item_group_items | 组内容关系重构 |
|
|
|
-| item_output_limits | 产出限制新机制 |
|
|
|
-| item_user_output_counters | 玩家限制计数器重构 |
|
|
|
-| **废弃表** | |
|
|
|
-| item_freeze_logs | 冻结功能整合到新系统 |
|
|
|
-| item_metrics* | 排行榜功能移除 |
|
|
|
+| 旧表名 | 新模块 | 新表名 | 处理状态 | 说明 |
|
|
|
+|------------------------|-------------|--------------------|----------|--------------------------|
|
|
|
+| **基础物品表** | | | | |
|
|
|
+| item_items | Item | items | ✅ 已迁移 | 基础物品定义 |
|
|
|
+| item_categories | - | - | ⚠️ 废弃 | 分类功能由标签系统替代 |
|
|
|
+| item_instances | Item | user_items | ✅ 已迁移 | 单独属性物品表 |
|
|
|
+| item_users | Item | user_items | ✅ 已迁移 | 用户物品关联表 |
|
|
|
+| **物品组表** | | | | |
|
|
|
+| item_groups | Item | groups | ✅ 已迁移 | 物品组定义 |
|
|
|
+| item_group_items | Item | group_items | ✅ 已迁移 | 物品组内容 |
|
|
|
+| **宝箱系统表** | | | | |
|
|
|
+| item_chest_configs | ItemChest | chest_configs | ✅ 已迁移 | 宝箱配置 |
|
|
|
+| item_pity_times | ItemChest | pity_times | ✅ 已迁移 | 保底计数 |
|
|
|
+| item_chest_open_logs | ItemChest | open_logs | ✅ 已迁移 | 开启日志 |
|
|
|
+| **物品合成表** | | | | |
|
|
|
+| item_recipes | ItemCraft | recipes | ✅ 已迁移 | 配方定义 |
|
|
|
+| item极recipe_materials| ItemCraft | recipe_materials | ✅ 已迁移 | 配方材料 |
|
|
|
+| item_user_recipes | ItemCraft | user_recipes | ✅ 已迁移 | 用户配方 |
|
|
|
+| item_craft_logs | ItemCraft | craft_logs | ✅ 已迁移 | 合成日志 |
|
|
|
+| **物品分解表** | | | | |
|
|
|
+| item_dismantle_rules | ItemDismantle | dismantle_rules | ✅ 已迁移 | 分解规则 |
|
|
|
+| item_dismantle_logs | ItemDismantle | dismantle_logs | ✅ 已迁移 | 分解日志 |
|
|
|
+| **物品变更日志** | | | | |
|
|
|
+| item_transaction_logs | Item | transaction_logs | ✅ 已迁移 | 物品获取/消耗记录 |
|
|
|
|
|
|
-## 3. 数据处理方案
|
|
|
-1. **旧表归档**:备份后从生产数据库移除
|
|
|
-2. **新表初始化**:通过系统初始化脚本创建空表
|
|
|
-3. **数据迁移**:不迁移历史数据,新系统从零开始
|
|
|
+## 3. 特殊处理表(废弃)
|
|
|
|
|
|
-> **重要提示**:
|
|
|
-> 新系统采用全新设计,与旧数据结构不兼容。
|
|
|
-> 所有功能将从初始状态开始运行。
|
|
|
+| 旧表名 | 废弃说明 |
|
|
|
+|------------------------|------------------------------|
|
|
|
+| item_output_limits | 功能由Game模块全局限制替代 |
|
|
|
+| item_user_output_counters | 功能由Game模块玩家限制替代 |
|
|
|
+| item_freeze_logs | 功能整合到事务日志 |
|
|
|
+| item_metrics* | 排行榜功能移除 |
|
|
|
+
|
|
|
+> 状态说明:
|
|
|
+> ✅ 已迁移 - 数据结构和功能已迁移到新模块
|
|
|
+> ⚠️ 废弃 - 功能被替代,数据不迁移
|