mirror of
https://github.com/bitwarden/server.git
synced 2024-11-24 12:35:25 +01:00
7 lines
281 B
MySQL
7 lines
281 B
MySQL
|
IF NOT EXISTS (SELECT TOP(1) 1 FROM [dbo].[Organization] WHERE [MaxAutoscaleSeats] IS NOT NULL)
|
||
|
AND NOT EXISTS ( SELECT TOP(1) 1 FROM [dbo].[Organization] WHERE [OwnersNotifiedOfAutoscaling] IS NOT NULL)
|
||
|
BEGIN
|
||
|
UPDATE [dbo].[Organization]
|
||
|
SET MaxAutoscaleSeats = Seats
|
||
|
END
|