-- 将 llm_tasks.result 统一为 /uploads/... 相对路径
-- 仅处理能明确识别出 /uploads/ 前缀的历史绝对路径记录

UPDATE `llm_tasks`
SET `result` = SUBSTRING(`result`, LOCATE('/uploads/', `result`))
WHERE `result` IS NOT NULL
  AND `result` <> ''
  AND `result` NOT LIKE '/uploads/%'
  AND LOCATE('/uploads/', `result`) > 0;
