chore(sql): 补充转码设置菜单初始化补丁
This commit is contained in:
1 parent
7b360ddccd
commit
a3ff636e45
1 file changed
+20
@@ -0,0 +1,20 @@
|
||||
-- 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;
|
||||
Reference in new issue
Block a user