1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
bitwarden-server/util/PostgresMigrations/HelperScripts/2021-10-21_00_SetMaxAutoscaleSeatCount.psql
Todd Martin 145071d499
Remove EF migration scripts (#2550)
* Removed Scripts folders

* Removed .csproj references.

* Added back HelperScripts

* Added back additional helper scripts.

* Fixed extra ItemGroup
2023-01-10 13:46:19 -05:00

5 lines
257 B
Plaintext

UPDATE "Organization"
SET "MaxAutoscaleSeats" = "Seats"
WHERE NOT EXISTS (SELECT 1 FROM "Organization" WHERE "MaxAutoscaleSeats" IS NOT NULL LIMIT 1)
AND NOT EXISTS (SELECT 1 FROM "Organization" WHERE "OwnersNotifiedOfAutoscaling" IS NOT NULL LIMIT 1)