From d1a8720a3e36bfe8f262d943c13116027835e270 Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Wed, 17 Jan 2024 13:42:26 +0000 Subject: [PATCH] [AC-1682] Removed bulk data migration script --- ...00_AllOrgsEnableCollectionEnhancements.sql | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 util/Migrator/DbScripts_transition/2024-01-10_00_AllOrgsEnableCollectionEnhancements.sql diff --git a/util/Migrator/DbScripts_transition/2024-01-10_00_AllOrgsEnableCollectionEnhancements.sql b/util/Migrator/DbScripts_transition/2024-01-10_00_AllOrgsEnableCollectionEnhancements.sql deleted file mode 100644 index e13232f7e4..0000000000 --- a/util/Migrator/DbScripts_transition/2024-01-10_00_AllOrgsEnableCollectionEnhancements.sql +++ /dev/null @@ -1,37 +0,0 @@ --- This script will enable collection enhancements for all organizations that have not yet migrated. - --- Step 1: Insert into a temporary table -SELECT [Id] AS [OrganizationId] -INTO #TempOrg -FROM [dbo].[Organization] -WHERE [FlexibleCollections] = 0; - --- Step 2: Execute the stored procedure for each OrganizationId -DECLARE @OrganizationId UNIQUEIDENTIFIER; - -DECLARE OrgCursor CURSOR FOR -SELECT [OrganizationId] -FROM #TempOrg; - -OPEN OrgCursor; - -FETCH NEXT FROM OrgCursor INTO @OrganizationId; - -WHILE (@@FETCH_STATUS = 0) -BEGIN - -- Execute the stored procedure for the current OrganizationId - EXEC [dbo].[Organization_EnableCollectionEnhancements] @OrganizationId; - - -- Update the Organization to set FlexibleCollections = 1 - UPDATE [dbo].[Organization] - SET [FlexibleCollections] = 1 - WHERE [Id] = @OrganizationId; - - FETCH NEXT FROM OrgCursor INTO @OrganizationId; -END; - -CLOSE OrgCursor; -DEALLOCATE OrgCursor; - --- Step 3: Drop the temporary table -DROP TABLE #TempOrg;