[PM-22146] Remove reference to JSON_PATH_EXISTS for old migration scripts for SH instances running older SQL Server versions (#5894)

(cherry picked from commit 9ad2d61303)
This commit is contained in:
Shane Melton
2025-05-28 11:31:07 -07:00
committed by Shane
parent d4e70d2de7
commit 9a9808417e

View File

@@ -129,7 +129,7 @@ BEGIN
END
-- Check if the attachment exists before trying to remove it
IF JSON_PATH_EXISTS(@CurrentAttachments, @AttachmentIdPath) = 0
IF JSON_QUERY(@CurrentAttachments, @AttachmentIdPath) IS NULL
BEGIN
-- Attachment doesn't exist, nothing to do
RETURN;