1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

Update SQL files to be backwards compatible when adding columns (#1635)

* Update SQL files to be backwards compatible when adding columns

* Remove 'UseResetPasswordCustomOrg' SQL script
This commit is contained in:
Vince Grassia
2021-10-15 12:28:21 -04:00
committed by GitHub
parent 4d6b0c9106
commit 15eeb9d650
8 changed files with 18 additions and 6 deletions

View File

@ -11,6 +11,8 @@ UPDATE
[dbo].[Organization]
SET
[Use2fa] = (CASE WHEN [PlanType] = 5 OR [PlanType] = 4 THEN 1 ELSE 0 END)
WHERE
[Use2fa] IS NULL
GO
ALTER TABLE