mirror of
https://github.com/bitwarden/server
synced 2026-01-16 23:43:22 +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)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
@@ -25,7 +25,8 @@ BEGIN
|
||||
[Folders],
|
||||
[Attachments],
|
||||
[CreationDate],
|
||||
[RevisionDate]
|
||||
[RevisionDate],
|
||||
[DeletedDate]
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
@@ -38,7 +39,8 @@ BEGIN
|
||||
@Folders,
|
||||
@Attachments,
|
||||
@CreationDate,
|
||||
@RevisionDate
|
||||
@RevisionDate,
|
||||
@DeletedDate
|
||||
)
|
||||
|
||||
IF @OrganizationId IS NOT NULL
|
||||
|
||||
Reference in New Issue
Block a user