From 9186ce3f24bf7d197bb86620d83dc66e7595d0ac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 11 May 2026 02:05:20 +0000 Subject: [PATCH] chore(advisor): document null index prefix lengths in reports index Agent-Logs-Url: https://github.com/appwrite/appwrite/sessions/517a4586-d3e8-40b3-a3a9-f2d2ca82b0a0 Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com> --- app/config/collections/platform.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php index 03877333fa..4cc3f5db0b 100644 --- a/app/config/collections/platform.php +++ b/app/config/collections/platform.php @@ -2102,6 +2102,8 @@ $platformCollections = [ '$id' => ID::custom('_key_project_target'), 'type' => Database::INDEX_KEY, 'attributes' => ['projectInternalId', 'targetType', 'target'], + // `projectInternalId` and `targetType` do not need explicit prefix lengths. + // Keep a prefix on the free-form `target` string to stay under index limits. 'lengths' => [null, null, 700], 'orders' => [], ],