From 9851dd2ab8a6457e1a7d7882bd91531c3ee0fd83 Mon Sep 17 00:00:00 2001 From: Cy Okeke Date: Fri, 14 Nov 2025 10:48:05 +0100 Subject: [PATCH] Add transition migration to populate MaxStorageGbIncreased MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../2025-11-14_00_PopulateMaxStorageGbIncreased.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 util/Migrator/DbScripts/2025-11-14_00_PopulateMaxStorageGbIncreased.sql diff --git a/util/Migrator/DbScripts/2025-11-14_00_PopulateMaxStorageGbIncreased.sql b/util/Migrator/DbScripts/2025-11-14_00_PopulateMaxStorageGbIncreased.sql new file mode 100644 index 0000000000..7d8484cc1a --- /dev/null +++ b/util/Migrator/DbScripts/2025-11-14_00_PopulateMaxStorageGbIncreased.sql @@ -0,0 +1,13 @@ +-- 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