mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
[AC-1682] Removed other temp table drops
This commit is contained in:
parent
eb7794d592
commit
26768b7bf8
@ -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`,
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
-- Step 2: AccessAll migration for OrganizationUsers
|
||||
-- Create a temporary table to store the OrganizationUsers with AccessAll = true
|
||||
DROP 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 TABLE IF EXISTS "TempUserManagers";
|
||||
CREATE TEMPORARY TABLE "TempUserManagers" AS
|
||||
SELECT "OU"."Id" AS "OrganizationUserId",
|
||||
"OU"."OrganizationId",
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
-- Step 2: AccessAll migration for OrganizationUsers
|
||||
-- Create a temporary table to store the OrganizationUsers with AccessAll = 1
|
||||
DROP 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 TABLE IF EXISTS "TempUserManagers";
|
||||
CREATE TEMPORARY TABLE "TempUserManagers" AS
|
||||
SELECT "OU"."Id" AS "OrganizationUserId",
|
||||
"OU"."OrganizationId",
|
||||
|
Loading…
Reference in New Issue
Block a user