INSERT INTO ias_upgrade_logs (
    version,
    released_at,
    title,
    description,
    changes,
    modules
) VALUES (
    '0.1.15',
    '2026-07-06T00:00:00+08:00',
    '邮件预览页面优化',
    '邮件预览页面全新设计，支持上下篇导航、HTML 邮件渲染和元信息一键复制。',
    '[
        "邮件预览页面全新设计：现代化卡片布局，顶部展示发件人、时间和来源等关键信息。",
        "新增上一封/下一封快速导航，无需返回列表即可连续浏览邮件。",
        "详细信息折叠面板，UID 和 Message-ID 支持一键复制。",
        "HTML 邮件自动检测并在沙箱 iframe 中渲染，纯文本邮件保持原有展示方式。",
        "新增 find_adjacent_ids 仓库方法，按 ID 查询相邻邮件记录。",
        "无数据库结构变化。"
    ]'::jsonb,
    '{
        "ias-common": "0.1.0",
        "ias-ai": "0.1.1",
        "ias-wechat": "0.1.0",
        "ias-context": "0.1.1",
        "ias-http": "0.1.1",
        "ias-mail": "0.1.8",
        "ias-service": "0.1.1",
        "ias-main": "0.1.15"
    }'::jsonb
) ON CONFLICT (version) DO UPDATE SET
    released_at = EXCLUDED.released_at,
    title = EXCLUDED.title,
    description = EXCLUDED.description,
    changes = EXCLUDED.changes,
    modules = EXCLUDED.modules;
