mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2026-03-13 09:31:31 +08:00
Fix menu SQL in mysql SQL scripts (#1096)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user