mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
[AC-1650] [AC-1578] (#3320)
* Upgraded old 2019 plans to have the same features as 2020 and beyond * Removed redundant test and moved additional test cases to GetByOrgIdAsync_SmNoneFreePlans_ReturnsNull * Fixed issue where feature flag wasn't returning correct plans * Resolved issue where getting plans would return a value that LINQ previously cached when feature flag was in a different state --------- Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
BEGIN TRY
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
UPDATE
|
||||
[dbo].[Organization]
|
||||
SET
|
||||
[Use2fa] = 1,
|
||||
[UseApi] = 1,
|
||||
[UseDirectory] = 1,
|
||||
[UseEvents] = 1,
|
||||
[UseGroups] = 1,
|
||||
[UsersGetPremium] = 1
|
||||
WHERE
|
||||
[PlanType] IN (2, 3); -- Teams 2019
|
||||
|
||||
COMMIT TRANSACTION;
|
||||
END TRY
|
||||
BEGIN CATCH
|
||||
ROLLBACK TRANSACTION;
|
||||
THROW;
|
||||
END CATCH
|
@ -0,0 +1,19 @@
|
||||
BEGIN TRY
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
UPDATE
|
||||
[dbo].[Organization]
|
||||
SET
|
||||
[UseSso] = 1,
|
||||
[UseKeyConnector] = 1,
|
||||
[UseScim] = 1,
|
||||
[UseResetPassword] = 1
|
||||
WHERE
|
||||
[PlanType] IN (4, 5) -- Enterprise 2019
|
||||
|
||||
COMMIT TRANSACTION;
|
||||
END TRY
|
||||
BEGIN CATCH
|
||||
ROLLBACK TRANSACTION;
|
||||
THROW;
|
||||
END CATCH
|
@ -0,0 +1,16 @@
|
||||
BEGIN TRY
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
UPDATE
|
||||
[dbo].[Organization]
|
||||
SET
|
||||
[UsersGetPremium] = 1
|
||||
WHERE
|
||||
[PlanType] = 1 -- Families 2019 Annual
|
||||
|
||||
COMMIT TRANSACTION;
|
||||
END TRY
|
||||
BEGIN CATCH
|
||||
ROLLBACK TRANSACTION;
|
||||
THROW;
|
||||
END CATCH
|
Reference in New Issue
Block a user