From 8c57ff161e52102aebe626235ebd41e98abf59e5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 May 2026 05:17:15 +0000 Subject: [PATCH] fix(insights): use VAR_ID for project internal references Agent-Logs-Url: https://github.com/appwrite/appwrite/sessions/688345d8-e680-46c7-9002-82f73193461b Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com> --- app/config/collections/platform.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php index 9220226b9e..30a8d9b785 100644 --- a/app/config/collections/platform.php +++ b/app/config/collections/platform.php @@ -1964,9 +1964,9 @@ $platformCollections = [ 'attributes' => [ [ '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, + 'type' => Database::VAR_ID, 'format' => '', - 'size' => Database::LENGTH_KEY, + 'size' => 0, 'signed' => true, 'required' => true, 'default' => null, @@ -2100,9 +2100,9 @@ $platformCollections = [ 'attributes' => [ [ '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, + 'type' => Database::VAR_ID, 'format' => '', - 'size' => Database::LENGTH_KEY, + 'size' => 0, 'signed' => true, 'required' => true, 'default' => null, @@ -2397,9 +2397,9 @@ $platformCollections = [ 'attributes' => [ [ '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, + 'type' => Database::VAR_ID, 'format' => '', - 'size' => Database::LENGTH_KEY, + 'size' => 0, 'signed' => true, 'required' => true, 'default' => null,