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

drop json null checks from storage update procs

This commit is contained in:
Kyle Spearrin
2018-03-28 13:43:33 -04:00
parent cf7cfee9e0
commit 22bc85f651
4 changed files with 139 additions and 3 deletions

View File

@ -29,7 +29,6 @@ BEGIN
AND (OU.[AccessAll] = 1 OR CU.[CollectionId] IS NOT NULL)
)
)
AND C.[Folders] IS NOT NULL
AND JSON_VALUE(C.[Folders], @UserIdPath) = @Id
DELETE

View File

@ -26,7 +26,6 @@ BEGIN
[CTE] ON C.[Id] = [CTE].[Id]
WHERE
C.[OrganizationId] = @Id
AND C.[Attachments] IS NOT NULL
UPDATE
[dbo].[Organization]

View File

@ -26,7 +26,6 @@ BEGIN
[CTE] ON C.[Id] = [CTE].[Id]
WHERE
C.[UserId] = @Id
AND C.[Attachments] IS NOT NULL
UPDATE
[dbo].[User]