diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php index 474ec3cf19..6abd2c7656 100644 --- a/app/config/collections/platform.php +++ b/app/config/collections/platform.php @@ -594,7 +594,7 @@ $platformCollections = [ 'filters' => [], ], [ - '$id' => ID::custom('identifier'), + '$id' => ID::custom('key'), // Identifier on API 'type' => Database::VAR_STRING, 'format' => '', 'size' => Database::LENGTH_KEY, @@ -604,6 +604,17 @@ $platformCollections = [ 'array' => false, 'filters' => [], ], + [ + '$id' => ID::custom('store'), // Unused at the moment + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], [ '$id' => ID::custom('hostname'), 'type' => Database::VAR_STRING, diff --git a/src/Appwrite/Platform/Modules/Project/Http/Project/Platforms/XList.php b/src/Appwrite/Platform/Modules/Project/Http/Project/Platforms/XList.php index 2d41349308..ac9621c430 100644 --- a/src/Appwrite/Platform/Modules/Project/Http/Project/Platforms/XList.php +++ b/src/Appwrite/Platform/Modules/Project/Http/Project/Platforms/XList.php @@ -79,6 +79,12 @@ class XList extends Base throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } + foreach ($queries as $query) { + if ($query->getAttribute() === 'identifier') { + $query->setAttribute('key'); + } + } + $queries[] = Query::equal('projectInternalId', [$project->getSequence()]); $cursor = Query::getCursorQueries($queries, false);