mirror of
https://github.com/bitwarden/server
synced 2026-01-04 17:43:53 +00:00
This migration populates the MaxStorageGbIncreased column for Users and Organizations by setting it to MaxStorageGb + 4, representing the storage increase from 1GB to 5GB. This migration depends on PM-27603 being deployed first to create the MaxStorageGbIncreased column. Target release: January 6th, 2026 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
487 B
Transact-SQL
14 lines
487 B
Transact-SQL
-- Populate MaxStorageGbIncreased for Users
|
|
-- Set MaxStorageGbIncreased = MaxStorageGb + 4 for all users with storage quota
|
|
UPDATE [dbo].[User]
|
|
SET [MaxStorageGbIncreased] = [MaxStorageGb] + 4
|
|
WHERE [MaxStorageGb] IS NOT NULL;
|
|
GO
|
|
|
|
-- Populate MaxStorageGbIncreased for Organizations
|
|
-- Set MaxStorageGbIncreased = MaxStorageGb + 4 for all organizations with storage quota
|
|
UPDATE [dbo].[Organization]
|
|
SET [MaxStorageGbIncreased] = [MaxStorageGb] + 4
|
|
WHERE [MaxStorageGb] IS NOT NULL;
|
|
GO
|