1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 17:43:53 +00:00
Files
server/util/Migrator/DbScripts/2025-11-14_00_PopulateMaxStorageGbIncreased.sql
Cy Okeke 9851dd2ab8 Add transition migration to populate MaxStorageGbIncreased
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>
2025-11-14 10:48:05 +01:00

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