INSERT INTO ias_upgrade_logs (
    version,
    released_at,
    title,
    description,
    changes,
    modules
) VALUES (
    '0.2.5',
    '2026-07-07T00:00:00+08:00',
    '修复迁移文件变化后的后台服务重编译',
    '修复新增 SQL 迁移文件后后台服务可能继续使用旧二进制迁移列表的问题，确保迁移目录变化会触发重新编译。',
    '[
        "修复新增 SQL 迁移文件后后台服务可能继续使用旧二进制迁移列表的问题。",
        "ias-service 新增 build.rs，显式监听 migrations 目录和 SQL 文件变化，确保 sqlx::migrate! 重新嵌入最新迁移。",
        "无数据库结构变化。"
    ]'::jsonb,
    '{
        "ias-common": "0.1.0",
        "ias-ai": "0.1.2",
        "ias-wechat": "0.1.0",
        "ias-context": "0.1.1",
        "ias-http": "0.1.3",
        "ias-mail": "0.1.11",
        "ias-service": "0.1.6",
        "ias-main": "0.2.5"
    }'::jsonb
) ON CONFLICT (version) DO UPDATE SET
    released_at = EXCLUDED.released_at,
    title = EXCLUDED.title,
    description = EXCLUDED.description,
    changes = EXCLUDED.changes,
    modules = EXCLUDED.modules;
