zhibo/move_gift_to_live_correctly.sql
2026-01-03 19:22:42 +08:00

22 lines
574 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.

-- 正确地将礼物打赏移到直播管理下
-- 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;