Fix menu SQL in mysql SQL scripts (#1096)

This commit is contained in:
Wu Clan
2026-03-05 18:36:55 +08:00
committed by GitHub
parent 0bd41a9e67
commit 62ece2f289
3 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
set @system_menu_id = (select id from sys_menu where name = 'System');
insert into sys_menu (title, name, path, sort, icon, type, component, perms, status, display, cache, link, remark, parent_id, created_time, updated_time)
values ('config.menu', 'PluginConfig', '/plugins/config', 7, 'codicon:symbol-parameter', 1, '/plugins/config/views/index', null, 1, 1, 1, '', null, (select id from sys_menu where name = 'System'), now(), null);
values ('config.menu', 'PluginConfig', '/plugins/config', 7, 'codicon:symbol-parameter', 1, '/plugins/config/views/index', null, 1, 1, 1, '', null, @system_menu_id, now(), null);
set @config_menu_id = LAST_INSERT_ID();

View File

@@ -1,5 +1,7 @@
set @system_menu_id = (select id from sys_menu where name = 'System');
insert into sys_menu (title, name, path, sort, icon, type, component, perms, status, display, cache, link, remark, parent_id, created_time, updated_time)
values ('dict.menu', 'PluginDict', '/plugins/dict', 8, 'fluent-mdl2:dictionary', 1, '/plugins/dict/views/index', null, 1, 1, 1, '', null, (select id from sys_menu where name = 'System'), now(), null);
values ('dict.menu', 'PluginDict', '/plugins/dict', 8, 'fluent-mdl2:dictionary', 1, '/plugins/dict/views/index', null, 1, 1, 1, '', null, @system_menu_id, now(), null);
set @dict_menu_id = LAST_INSERT_ID();

View File

@@ -1,5 +1,7 @@
set @system_menu_id = (select id from sys_menu where name = 'System');
insert into sys_menu (title, name, path, sort, icon, type, component, perms, status, display, cache, link, remark, parent_id, created_time, updated_time)
values ('notice.menu', 'PluginNotice', '/plugins/notice', 9, 'fe:notice-push', 1, '/plugins/notice/views/index', null, 1, 1, 1, '', null, (select id from sys_menu where name = 'System'), now(), null);
values ('notice.menu', 'PluginNotice', '/plugins/notice', 9, 'fe:notice-push', 1, '/plugins/notice/views/index', null, 1, 1, 1, '', null, @system_menu_id, now(), null);
set @notice_menu_id = LAST_INSERT_ID();