mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
[AC-1682] Removed other temp table drops
This commit is contained in:
@ -9,7 +9,6 @@
|
||||
|
||||
-- Step 2: AccessAll migration for OrganizationUsers
|
||||
-- Create a temporary table to store the OrganizationUsers with AccessAll = 1
|
||||
DROP TEMPORARY TABLE IF EXISTS `TempUsersAccessAll`;
|
||||
CREATE TEMPORARY TABLE `TempUsersAccessAll` AS
|
||||
SELECT `OU`.`Id` AS `OrganizationUserId`,
|
||||
`OU`.`OrganizationId`
|
||||
@ -20,7 +19,6 @@
|
||||
-- Step 3: For all OrganizationUsers with Manager role or 'EditAssignedCollections' permission update their existing CollectionUsers rows and insert new rows with [Manage] = 1
|
||||
-- and finally update all OrganizationUsers with Manager role to User role
|
||||
-- Create a temporary table to store the OrganizationUsers with Manager role or 'EditAssignedCollections' permission
|
||||
DROP TEMPORARY TABLE IF EXISTS `TempUserManagers`;
|
||||
CREATE TEMPORARY TABLE `TempUserManagers` AS
|
||||
SELECT `OU`.`Id` AS `OrganizationUserId`,
|
||||
`OU`.`OrganizationId`,
|
||||
|
Reference in New Issue
Block a user