1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 01:23:25 +00:00

database adjustments and storage for attachments

This commit is contained in:
Kyle Spearrin
2017-06-30 14:41:57 -04:00
parent 6cea556ae1
commit 284078e946
17 changed files with 178 additions and 23 deletions

View File

@@ -0,0 +1,16 @@
CREATE PROCEDURE [dbo].[User_UpdateStorage]
@Id UNIQUEIDENTIFIER,
@StorageIncrease BIGINT
AS
BEGIN
SET NOCOUNT ON
UPDATE
[dbo].[User]
SET
[Storage] = ISNULL([Storage], 0) + @StorageIncrease,
[RevisionDate] = GETUTCDATE()
WHERE
[Id] = @Id
END