mirror of
https://github.com/bitwarden/server.git
synced 2025-01-30 23:11:22 +01:00
[AC-1682] Update RevisionDate in Group table
This commit is contained in:
parent
39e336eddd
commit
f7f692cf08
@ -33,7 +33,7 @@ WHERE CG.`CollectionId` IS NULL;
|
||||
-- Step 5: Update Group to clear AccessAll flag
|
||||
UPDATE `Group` G
|
||||
INNER JOIN TempGroup TG ON G.`Id` = TG.`GroupId`
|
||||
SET G.`AccessAll` = 0;
|
||||
SET G.`AccessAll` = 0, G.`RevisionDate` = UTC_TIMESTAMP();
|
||||
|
||||
-- Step 6: Update User AccountRevisionDate for each unique OrganizationUserId
|
||||
UPDATE `User` U
|
||||
|
@ -31,7 +31,7 @@ WHERE CG."CollectionId" IS NULL;
|
||||
|
||||
-- Step 5: Update Group to clear AccessAll flag
|
||||
UPDATE "Group" G
|
||||
SET "AccessAll" = false
|
||||
SET "AccessAll" = false, "RevisionDate" = current_timestamp
|
||||
FROM TempGroup TG
|
||||
WHERE G."Id" = TG."GroupId";
|
||||
|
||||
|
@ -33,7 +33,7 @@ WHERE CG."CollectionId" IS NULL;
|
||||
|
||||
-- Step 5: Update Group to clear AccessAll flag
|
||||
UPDATE "Group"
|
||||
SET "AccessAll" = 0
|
||||
SET "AccessAll" = 0, "RevisionDate" = CURRENT_TIMESTAMP
|
||||
WHERE "Id" IN (SELECT "GroupId" FROM TempGroup);
|
||||
|
||||
-- Step 6: Update User AccountRevisionDate for each unique OrganizationUserId
|
||||
|
Loading…
Reference in New Issue
Block a user