-- 将礼物打赏移到直播管理菜单下

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

-- 2. 更新礼物打赏的pid，让它成为直播管理的子菜单
UPDATE eb_system_menu 
SET pid = @live_manage_id, sort = 999
WHERE name = '礼物打赏';

-- 3. 验证结果
SELECT 
    m1.name as '父菜单',
    m2.name as '子菜单',
    m2.component as '路径'
FROM eb_system_menu m1
JOIN eb_system_menu m2 ON m1.id = m2.pid
WHERE m1.name = '直播管理'
ORDER BY m2.sort;
