1
0
mirror of https://github.com/bitwarden/server synced 2026-01-09 03:53:42 +00:00

Added schema for device table

This commit is contained in:
Kyle Spearrin
2016-06-18 13:22:29 -04:00
parent 1ff49cd5b3
commit 3e32a55640
8 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
CREATE PROCEDURE [dbo].[Device_Update]
@Id UNIQUEIDENTIFIER,
@UserId UNIQUEIDENTIFIER,
@Name NVARCHAR(50),
@Type TINYINT,
@PushToken NVARCHAR(255),
@CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7)
AS
BEGIN
SET NOCOUNT ON
UPDATE
[dbo].[Device]
SET
[UserId] = @UserId,
[Name] = @Name,
[Type] = @Type,
[PushToken] = @PushToken,
[CreationDate] = @CreationDate,
[RevisionDate] = @RevisionDate
WHERE
[Id] = @Id
END