- -- 添加 execution_id 字段到 qc_task_image_result 表
- -- 用于关联自动任务的执行记录
- ALTER TABLE qc_task_image_result
- ADD COLUMN execution_id BIGINT COMMENT '关联的执行记录ID(自动任务)' AFTER task_id;
- -- 添加索引以提高查询性能
- ALTER TABLE qc_task_image_result
- ADD INDEX idx_execution_id (execution_id);
|