From 65883122e3ff2e4a8094f669e61db449b8058c31 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 4 Jan 2026 12:16:59 +0200 Subject: [PATCH 1/2] rules changes --- app/config/collections/platform.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php index e919df8e1a..d5e7ff4669 100644 --- a/app/config/collections/platform.php +++ b/app/config/collections/platform.php @@ -1402,21 +1402,21 @@ $platformCollections = [ '$id' => '_key_type', 'type' => Database::INDEX_KEY, 'attributes' => ['type'], - 'lengths' => [32], + 'lengths' => [], 'orders' => [Database::ORDER_ASC], ], [ '$id' => '_key_trigger', 'type' => Database::INDEX_KEY, 'attributes' => ['trigger'], - 'lengths' => [32], + 'lengths' => [], 'orders' => [Database::ORDER_ASC], ], [ '$id' => '_key_deploymentResourceType', 'type' => Database::INDEX_KEY, 'attributes' => ['deploymentResourceType'], - 'lengths' => [32], + 'lengths' => [], 'orders' => [Database::ORDER_ASC], ], [ @@ -1458,23 +1458,30 @@ $platformCollections = [ '$id' => ID::custom('_key_owner'), 'type' => Database::INDEX_KEY, 'attributes' => ['owner'], - 'lengths' => [16], + 'lengths' => [], 'orders' => [Database::ORDER_ASC], ], [ '$id' => ID::custom('_key_region'), 'type' => Database::INDEX_KEY, 'attributes' => ['region'], - 'lengths' => [16], + 'lengths' => [], 'orders' => [Database::ORDER_ASC], ], [ - '$id' => ID::custom('_key_piid_riid_rt'), + '$id' => ID::custom('_key_piid_diid_drt'), 'type' => Database::INDEX_KEY, 'attributes' => ['projectInternalId', 'deploymentInternalId', 'deploymentResourceType'], 'lengths' => [], 'orders' => [], ], + [ + '$id' => '_key_region_status_createdAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'status', '$createdAt'], + 'lengths' => [], + 'orders' => [], + ], ], ], From b6aeaffe8be392922c99d865136ecb0f5b70094b Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 4 Jan 2026 12:20:22 +0200 Subject: [PATCH 2/2] Remove region index --- app/config/collections/platform.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php index d5e7ff4669..57f0a0ae7b 100644 --- a/app/config/collections/platform.php +++ b/app/config/collections/platform.php @@ -1461,13 +1461,6 @@ $platformCollections = [ 'lengths' => [], 'orders' => [Database::ORDER_ASC], ], - [ - '$id' => ID::custom('_key_region'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['region'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], [ '$id' => ID::custom('_key_piid_diid_drt'), 'type' => Database::INDEX_KEY,