1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
bitwarden-server/util/Migrator/DbScripts/2024-07-01_00_EnsureMaxGBAndSeatsAreSet.sql
Conner Turnbull de79d57d6e
[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
2024-07-29 09:06:10 -04:00

11 lines
187 B
Transact-SQL

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