Skip to content

Commit

Permalink
Bulk deleting bytes should only select from attachment, historic deta…
Browse files Browse the repository at this point in the history
…il and historic variables that do have a byte array reference
  • Loading branch information
filiphr committed Apr 2, 2024
1 parent 3f2ef75 commit 643a121
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
select ATTACHMENT_.CONTENT_ID_
from ${prefix}ACT_HI_ATTACHMENT ATTACHMENT_
where
ATTACHMENT_.CONTENT_ID_ is not null and (
<foreach item="listItem" index="listIndex" collection="collection">
<if test="listIndex &gt; 0">
or
Expand All @@ -148,6 +149,7 @@
#{item}
</foreach>
</foreach>
)
)
</delete>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
select HIDETAIL.BYTEARRAY_ID_
from ${prefix}ACT_HI_DETAIL HIDETAIL
where
HIDETAIL.BYTEARRAY_ID_ is not null and (
<foreach item="listItem" index="listIndex" collection="collection">
<if test="listIndex &gt; 0">
or
Expand All @@ -168,6 +169,7 @@
#{item}
</foreach>
</foreach>
)
)
</delete>

Expand All @@ -190,6 +192,7 @@
select HIDETAIL.BYTEARRAY_ID_
from ${prefix}ACT_HI_DETAIL HIDETAIL
where
HIDETAIL.BYTEARRAY_ID_ is not null and (
<foreach item="listItem" index="listIndex" collection="collection">
<if test="listIndex &gt; 0">
or
Expand All @@ -199,6 +202,7 @@
#{item}
</foreach>
</foreach>
)
)
</delete>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
select VARINST.BYTEARRAY_ID_
from ${prefix}ACT_HI_VARINST VARINST
where
VARINST.BYTEARRAY_ID_ is not null and (
<foreach item="listItem" index="listIndex" collection="collection">
<if test="listIndex &gt; 0">
or
Expand All @@ -168,6 +169,7 @@
#{item}
</foreach>
</foreach>
)
)
</delete>

Expand All @@ -190,6 +192,7 @@
select VARINST.BYTEARRAY_ID_
from ${prefix}ACT_HI_VARINST VARINST
where
VARINST.BYTEARRAY_ID_ is not null and (
<foreach item="listItem" index="listIndex" collection="collection">
<if test="listIndex &gt; 0">
or
Expand All @@ -199,6 +202,7 @@
#{item}
</foreach>
</foreach>
)
)
</delete>

Expand Down Expand Up @@ -231,6 +235,7 @@
</foreach>
</foreach>)
and VARINST.SCOPE_TYPE_ = #{scopeType}
and VARINST.BYTEARRAY_ID_ is not null
)
</delete>

Expand Down

0 comments on commit 643a121

Please sign in to comment.