From 668edf04ca5694f4ffcc25316e38df7ccc6f3925 Mon Sep 17 00:00:00 2001 From: wangli <274027703@qq.com> Date: Sat, 14 Sep 2024 13:56:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(REQ-2924)=20-=20=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=A1=A8=E8=84=9A=E6=9C=AC=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/sql/upgrade_to_1.4.2.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/workflow-engine-core/src/main/resources/sql/upgrade_to_1.4.2.sql b/workflow-engine-core/src/main/resources/sql/upgrade_to_1.4.2.sql index 68126ece0..773b7040c 100644 --- a/workflow-engine-core/src/main/resources/sql/upgrade_to_1.4.2.sql +++ b/workflow-engine-core/src/main/resources/sql/upgrade_to_1.4.2.sql @@ -26,3 +26,8 @@ create table `workflow-engine`.ext_ax_process_log update_at datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间', is_delete bigint default 0 not null comment '是否删除' ) comment '审批日志持久化'; + +create unique index idx_process_task_status + on ext_ax_process_log (process_instance_id, task_id, status, is_delete); + +