mirror of
https://github.com/bitwarden/server
synced 2026-01-08 19:43:34 +00:00
new database schema for ciphers and history. dropped old site and folder tables.
This commit is contained in:
22
src/Sql/dbo/Stored Procedures/Cipher_Update.sql
Normal file
22
src/Sql/dbo/Stored Procedures/Cipher_Update.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
CREATE PROCEDURE [dbo].[Cipher_Update]
|
||||
@Id UNIQUEIDENTIFIER,
|
||||
@UserId UNIQUEIDENTIFIER,
|
||||
@FolderId UNIQUEIDENTIFIER,
|
||||
@Type TINYINT,
|
||||
@Data NVARCHAR(MAX),
|
||||
@CreationDate DATETIME2(7),
|
||||
@RevisionDate DATETIME2(7)
|
||||
AS
|
||||
BEGIN
|
||||
UPDATE
|
||||
[dbo].[Cipher]
|
||||
SET
|
||||
[UserId] = @UserId,
|
||||
[FolderId] = @FolderId,
|
||||
[Type] = @Type,
|
||||
[Data] = @Data,
|
||||
[CreationDate] = @CreationDate,
|
||||
[RevisionDate] = @RevisionDate
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
Reference in New Issue
Block a user