本卡屬 FR-165(母卡見「母卡」欄),批 1。一支主線 migration,只動 scripts/sql/。做完回寫時明講「出貨基線待重產」。

這一棒在做什麼(白話)

左側選單要變成:合規稽核群組多一個「掃描工具資源管理」、少一個「掃描設定檔管理」;系統設定群組少一個「弱點資料庫」。這張卡只改資料庫裡的選單表,前端頁面由 FR-165.2 做。兩筆舊選單是「停用」不是刪,因為升級客戶的權限綁定、使用手冊、稽核事件都還指著它們。

在哪裡

~/Projects/Billows/Audit-Manager/compliance-manager-be/scripts/sql/2026-10-26-fr165-scan-tool-resources-menu.sql    新檔(本卡唯一產出)
~/Projects/Billows/Audit-Manager/compliance-manager-be/scripts/sql/2026-10-24-fr161-move-pre-engagement-menu.sql       範本:UPDATE ui_routes 用 name 定位、SET LOCAL app.is_super_admin、登記段
~/Projects/Billows/Audit-Manager/compliance-manager-be/scripts/sql/2026-10-10-fr134-vulndb-settings-page.sql           範本:INSERT ui_routes WHERE NOT EXISTS、route_capabilities 綁法、CAPABILITY_CATALOG bump、DO $$ 驗證段

DEV 現況(2026-10-26 實查 public.ui_routes):detection-profile-manage /plugin/detection-profile-manage sort 35 父 group-compliance-audit;detection-profile-controls /plugin/detection-profile-manage/versions/:versionUid/controls sort 900 父 detection-profile-manage;vulndb /system/vulndb sort 38 父 group-system-config。能力點 detection.profile.read/system.vulndb.read 都已存在(public.capabilities)。

怎麼做

手測