-- DM8 字典导入按钮权限脚本
-- 幂等处理：清理旧的导入权限按钮，再重新写入

DELETE FROM system_role_menu WHERE menu_id = 103001;
DELETE FROM system_menu WHERE id = 103001;

INSERT INTO system_menu (
    id, name, permission, type, sort, parent_id, path, icon, component, component_name,
    status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted
) VALUES (
    103001, '字典导入', 'system:dict:import', 3, 6, 105, '#', '#', '', NULL,
    0, '1', '1', '1', 'admin', CURRENT_TIMESTAMP, 'admin', CURRENT_TIMESTAMP, '0'
);

-- 如需同步给指定角色，请手工向 system_role_menu 插入对应关系记录
