| 123456789101112131415161718 |
- -- =====================================================================================
- -- 1.0.505 S8-LEGACY-NOTIFY-DECOMMISSION-1 · 退役旧通知分层数据
- --
- -- 背景:通知收件人的 Current Authority 已是 ado_s8_notification_recipient
- -- (Rule + Event + RecipientType → 责任池 / 当前处理人 / 当前复核人 → SysUser)。
- -- 上一批(8f8116cd9)已把 Runtime 对 ado_s8_notification_layer 的读取整体切断,
- -- 并让 S8NotificationLayerSeedData 停止供数。本脚本清掉库里最后的遗留行。
- --
- -- 为什么不迁移:旧表按 (scene, severity, level) 选人,新模型按 (rule, event, responsibility),
- -- 是两套互不相干的维度,不存在把前者映射到后者的正确做法。真库取证也支持退役 ——
- -- 16 行里 14 行是从没人改过的平台默认种子(tenant_id=0),
- -- 2 行是租户侧 orphan(scene 不在场景表 / 目标角色在本租户无成员)。
- --
- -- 边界:只删数据,不动结构。表、Entity、CRUD Service、Controller、Seed 空壳、旧页面与 route
- -- 全部保留,物理清理属 backend dead code 范畴,留给 P1-C3 单独一批。
- -- =====================================================================================
- DELETE FROM `ado_s8_notification_layer`;
|