1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-05 19:17:36 +01:00

Added migration.

This commit is contained in:
jrmccannon 2024-11-07 15:51:18 -06:00
parent 0a4c88a295
commit ff61b83675
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6

View File

@ -0,0 +1,15 @@
CREATE OR ALTER PROCEDURE [dbo].[OrganizationUser_SetStatusForUsersById]
@OrganizationUserIds AS [dbo].[GuidIdArray] READONLY,
@Status SMALLINT
AS
BEGIN
SET NOCOUNT ON
UPDATE
[dbo].[OrganizationUser]
SET
[Status] = @Status
WHERE
[Id] IN (SELECT Id from @OrganizationUserIds)
END
EXEC [dbo].[User_BumpAccountRevisionDateByOrganizationUserIds] @OrganizationUserIds