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