mirror of
https://github.com/bitwarden/server
synced 2026-01-10 20:44:05 +00:00
* Fixes bitwarden/server/#1101 - Extended length of Email column to 256 characters - Installation * Fixes bitwarden/server/#1101 - Extended length of Email column to 256 characters - User * Fixes bitwarden/server/#1101 - Extended length of BillingEmail column to 256 characters - Organization * Fixes bitwarden/server/#1101 - Extended length of Email column to 256 characters - OrganizationUser * Fixes bitwarden/server/#1101 - Extended length of Email column to 256 characters - EmergencyAccess * Fixes bitwarden/server/bitwarden#1101 - Fixed issues after PR review
36 lines
1002 B
Transact-SQL
36 lines
1002 B
Transact-SQL
CREATE PROCEDURE [dbo].[EmergencyAccess_Update]
|
|
@Id UNIQUEIDENTIFIER,
|
|
@GrantorId UNIQUEIDENTIFIER,
|
|
@GranteeId UNIQUEIDENTIFIER,
|
|
@Email NVARCHAR(256),
|
|
@KeyEncrypted VARCHAR(MAX),
|
|
@Type TINYINT,
|
|
@Status TINYINT,
|
|
@WaitTimeDays SMALLINT,
|
|
@RecoveryInitiatedDate DATETIME2(7),
|
|
@LastNotificationDate DATETIME2(7),
|
|
@CreationDate DATETIME2(7),
|
|
@RevisionDate DATETIME2(7)
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
UPDATE
|
|
[dbo].[EmergencyAccess]
|
|
SET
|
|
[GrantorId] = @GrantorId,
|
|
[GranteeId] = @GranteeId,
|
|
[Email] = @Email,
|
|
[KeyEncrypted] = @KeyEncrypted,
|
|
[Type] = @Type,
|
|
[Status] = @Status,
|
|
[WaitTimeDays] = @WaitTimeDays,
|
|
[RecoveryInitiatedDate] = @RecoveryInitiatedDate,
|
|
[LastNotificationDate] = @LastNotificationDate,
|
|
[CreationDate] = @CreationDate,
|
|
[RevisionDate] = @RevisionDate
|
|
WHERE
|
|
[Id] = @Id
|
|
|
|
EXEC [dbo].[User_BumpAccountRevisionDate] @GranteeId
|
|
END |