1
0
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:
Rui Tome 2024-02-16 12:51:13 +00:00
parent 39e336eddd
commit f7f692cf08
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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";

View File

@ -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