吴昊天 2a79dc7bb2 feat(订单中台): 拆分用户删除与后台删除标记
eb_order_center 新增 is_system_del(后台删除,隐藏后台列表),
is_del 语义收敛为用户删除(用户端隐藏)。后台列表与统计改按
is_system_del 过滤,用户删除的订单后台仍可见;后台删除以用户
已删为前提,写 is_system_del 并清统计缓存,不再动 is_del。
同步 crmeb_table.sql,新增 public/install/update.sql 增量脚本
(已安装环境升级执行,全新安装无需)。
2026-10-09 10:33:53 +08:00

14 lines
928 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ============================================================
-- CRMEB 数据库增量更新脚本
-- 用途:已安装环境升级到当前版本时执行;全新安装直接导入
-- crmeb_table.sql,无需本文件。
-- 注意:MySQL 8 不支持 ADD COLUMN IF NOT EXISTS,请勿重复执行。
-- ============================================================
-- 2026-10-09 订单中台删除标记拆分:is_del=用户删除(用户端隐藏),
-- is_system_del=后台删除(后台列表隐藏);后台列表与统计改按
-- is_system_del 过滤,用户删除的订单后台仍可见,后台删除以用户已删为前提。
ALTER TABLE `eb_order_center`
ADD COLUMN `is_system_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '后台删除标记(后台列表隐藏)' AFTER `is_del`,
MODIFY COLUMN `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '用户删除标记(用户端隐藏)';