diff --git a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql index 17d11ac..6d775f4 100644 --- a/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql +++ b/Reports/SecretServer/PlatformMigration/Platform_Migration_Inventory.sql @@ -1,4 +1,10 @@ -SELECT 'Report Version' AS [Item], '1.3.20240925' AS [Value], '' AS [Comment] +SELECT 'Report Version' AS [Item], '1.3.20241004' AS [Value], '' AS [Comment] + +UNION ALL + +SELECT 'Report Date' AS [Item], + CONVERT(VARCHAR, GETDATE(), 101) AS [Value], -- Format: MM/DD/YYYY + '' AS [Comment] UNION ALL @@ -43,17 +49,17 @@ UNION ALL SELECT '--> Size' AS [Item], CASE - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) < 1000 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) < 2500 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) < 2 THEN 'Small' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 1001 AND 14000 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 2501 AND 10000 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) BETWEEN 3 AND 7 THEN 'Medium' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 140001 AND 50000 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 10001 AND 25000 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Large' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 500001 + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 25001 AND (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Custom' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 5000 THEN 'Large' - WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 501 AND 5000 THEN 'Medium' + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) > 10001 THEN 'Large' + WHEN (SELECT COUNT(SecretID) FROM tbSecret WHERE Active = 1) BETWEEN 2501 AND 10000 THEN 'Medium' WHEN (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) > 7 THEN 'Large' WHEN (SELECT COUNT(*) FROM tbSdkClientAccount WHERE Revoked <> 1) BETWEEN 3 AND 7 THEN 'Medium' ELSE 'Small' -- Default if both categories are small