admin/sql/fix_data_perm_audit_menu.sql
2026-07-03 11:58:24 +08:00

11 lines
445 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 数据权限审计菜单:accessLog → audit(与前端路由一致)
-- 若未执行过旧 seed 可跳过;已存在错误 Route/Component 时执行本脚本
UPDATE `menu`
SET
`Route` = '/system/dataPerm/audit',
`Component` = 'views/system/dataPerm/audit/index',
`UpdateTime` = NOW()
WHERE `Id` = 'da100001-0000-4000-8000-000000000004'
OR (`Route` = '/system/dataPerm/accessLog' AND `PermissionCode` = 'Rbac.DataPerm.Audit');