1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-06 03:00:36 -05:00

[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 9ad2d61303c4ac762cf5961dc3ef53715d6dd478)
This commit is contained in:
Shane Melton 2025-05-28 11:31:07 -07:00 committed by Shane
parent d4e70d2de7
commit 9a9808417e
No known key found for this signature in database

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;