mirror of
https://github.com/bitwarden/server.git
synced 2025-01-21 21:41:21 +01:00
Added migration.
This commit is contained in:
parent
0a4c88a295
commit
ff61b83675
15
util/Migrator/DbScripts/2024-11-06-00_BulkOrgUserRevoke.sql
Normal file
15
util/Migrator/DbScripts/2024-11-06-00_BulkOrgUserRevoke.sql
Normal 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
|
Loading…
Reference in New Issue
Block a user