1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-10 21:20:35 -05:00

Further rename to signaturekeypair

This commit is contained in:
Bernd Schoolmann 2025-06-02 15:34:54 +02:00
parent cfe647f3b4
commit edc5e43898
No known key found for this signature in database
5 changed files with 12 additions and 12 deletions

View File

@ -0,0 +1,8 @@
CREATE PROCEDURE [dbo].[UserSignatureKeyPair_ReadByUserId]
@UserId UNIQUEIDENTIFIER
AS
BEGIN
SELECT *
FROM [dbo].[UserSignatureKeyPair]
WHERE [UserId] = @UserId;
END

View File

@ -1,13 +1,13 @@
CREATE PROCEDURE [dbo].[UserSigningKey_UpdateForRotation]
CREATE PROCEDURE [dbo].[UserSignatureKeyPair_UpdateForRotation]
@UserId UNIQUEIDENTIFIER,
@KeyType TINYINT,
@SignatureKeyPairAlgorithm TINYINT,
@SigningKey VARCHAR(MAX),
@VerifyingKey VARCHAR(MAX),
@RevisionDate DATETIME2(7)
AS
BEGIN
UPDATE [dbo].[UserSigningKey]
SET [KeyType] = @KeyType,
UPDATE [dbo].[UserSignatureKeyPair]
SET [SignatureKeyPairAlgorithm] = @SignatureKeyPairAlgorithm,
[SigningKey] = @SigningKey,
[VerifyingKey] = @VerifyingKey,
[RevisionDate] = @RevisionDate

View File

@ -1,8 +0,0 @@
CREATE PROCEDURE [dbo].[UserSigningKey_ReadByUserId]
@UserId UNIQUEIDENTIFIER
AS
BEGIN
SELECT *
FROM [dbo].[UserSigningKey]
WHERE [UserId] = @UserId;
END