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

[AC-2820] Updated org edit form scripts to dynamically update expected values (#4439)

* Updated org edit form scripts to dynamically update expected values

* Added script to update null values on organization table

* Updated script to only add MaxStorageGb for premium tiers. Removed setting of seats since it's not a valid edge case

* Updated GetPlansHelper() to not use annonymous properties
This commit is contained in:
Conner Turnbull
2024-07-29 09:06:10 -04:00
committed by GitHub
parent 54bd5fa894
commit de79d57d6e
3 changed files with 97 additions and 52 deletions

View File

@ -0,0 +1,10 @@
UPDATE
[dbo].[Organization]
SET
[MaxStorageGb] = ISNULL([MaxStorageGb], 1)
WHERE
[MaxStorageGb] IS NULL
AND [PlanType] NOT IN (
0, --Free
6 --Custom
)