mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -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:
@ -50,6 +50,8 @@ UPDATE
|
||||
[dbo].[Organization]
|
||||
SET
|
||||
[UseApi] = (CASE WHEN [PlanType] = 5 OR [PlanType] = 4 THEN 1 ELSE 0 END)
|
||||
WHERE
|
||||
[UseApi] IS NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE
|
||||
@ -71,6 +73,8 @@ UPDATE
|
||||
[dbo].[Organization]
|
||||
SET
|
||||
[ApiKey] = (SELECT [dbo].[SecureRandomString]())
|
||||
WHERE
|
||||
[ApiKey] IS NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE
|
||||
|
Reference in New Issue
Block a user