-- 正确地将礼物打赏移到直播管理下

-- 1. 获取直播管理的ID
SELECT @live_id := id FROM eb_system_menu WHERE name = '直播管理' AND pid = 0;

-- 2. 更新礼物打赏，保持其类型为C（菜单），只改变父级
UPDATE eb_system_menu 
SET pid = @live_id, 
    sort = 800
WHERE name = '礼物打赏';

-- 3. 验证结果
SELECT 
    '直播管理子菜单' as '类别',
    m.name as '菜单名',
    m.menu_type as '类型',
    m.component as '组件路径',
    m.sort as '排序'
FROM eb_system_menu m
WHERE m.pid = @live_id
ORDER BY m.sort;
