mirror of
https://github.com/bitwarden/server.git
synced 2024-12-05 14:23:30 +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
|