mirror of
https://github.com/bitwarden/server.git
synced 2024-12-24 17:17:40 +01:00
22 lines
380 B
MySQL
22 lines
380 B
MySQL
|
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
|