DELETE arp
FROM admin_role_permissions arp
JOIN admin_permissions p ON p.id = arp.permission_id
WHERE p.code IN ('notification:view', 'notification:read', 'notification:read-all', 'notification:delete');

DELETE FROM admin_menus
WHERE code = 'notifications'
   OR permission_code IN ('notification:view', 'notification:read', 'notification:read-all', 'notification:delete');

DELETE FROM admin_permissions
WHERE code IN ('notification:view', 'notification:read', 'notification:read-all', 'notification:delete');

-- 生产账号不要求 DROP 权限；通知中心菜单和权限已移除，废弃表即使保留也不再被代码访问。
