21 lines
1.0 KiB
SQL
21 lines
1.0 KiB
SQL
-- Author: fruit.com.cn
|
|
-- 后台「转码设置」独立菜单(幂等,仅提交文件,由发布流程执行)
|
|
|
|
INSERT INTO sys_menu (id, parent_id, title, route_path, route_name, component, redirect, icon,
|
|
permission_code, type, always_show, affix, sort) VALUES
|
|
(35, 6, '转码设置', 'transcode-settings', 'transcode-settings',
|
|
'views/systemManagement/TranscodeSettingsView', '', '',
|
|
'episode:upload', 'MENU', 0, 0, 7)
|
|
ON CONFLICT (id) DO UPDATE SET parent_id = EXCLUDED.parent_id, title = EXCLUDED.title,
|
|
route_path = EXCLUDED.route_path, route_name = EXCLUDED.route_name,
|
|
component = EXCLUDED.component, redirect = EXCLUDED.redirect, icon = EXCLUDED.icon,
|
|
permission_code = EXCLUDED.permission_code, type = EXCLUDED.type,
|
|
always_show = EXCLUDED.always_show, affix = EXCLUDED.affix, sort = EXCLUDED.sort;
|
|
|
|
INSERT INTO sys_role_menu (id, role_id, menu_id)
|
|
SELECT r.id * 1000000 + m.id, r.id, m.id
|
|
FROM sys_role r
|
|
CROSS JOIN sys_menu m
|
|
WHERE r.code = 'super_admin' AND m.id = 35
|
|
ON CONFLICT DO NOTHING;
|