mirror of
https://github.com/bitwarden/server
synced 2026-01-18 00:13:19 +00:00
[Soft-Delete] Simplify the data-tier, removed extra sprocs and reuse update
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
@Attachments NVARCHAR(MAX),
|
||||
@CreationDate DATETIME2(7),
|
||||
@RevisionDate DATETIME2(7),
|
||||
@DeletedDate DATETIME2(7), -- not used
|
||||
@DeletedDate DATETIME2(7),
|
||||
@CollectionIds AS [dbo].[GuidIdArray] READONLY
|
||||
AS
|
||||
BEGIN
|
||||
@@ -34,9 +34,9 @@ BEGIN
|
||||
[OrganizationId] = @OrganizationId,
|
||||
[Data] = @Data,
|
||||
[Attachments] = @Attachments,
|
||||
[RevisionDate] = @RevisionDate
|
||||
[RevisionDate] = @RevisionDate,
|
||||
[DeletedDate] = @DeletedDate
|
||||
-- No need to update CreationDate, Favorites, Folders, or Type since that data will not change
|
||||
-- Do not update DeletedDate because that is a separate atomic action
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user