From dbd45b50b7349a50ae8542a3194c38782d875f46 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sat, 27 Jun 2026 07:16:28 +0530 Subject: [PATCH 1/2] Fix V24 provider trigger attributes --- src/Appwrite/Migration/Version/V24.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Appwrite/Migration/Version/V24.php b/src/Appwrite/Migration/Version/V24.php index 65da1bd20d..e22f43217a 100644 --- a/src/Appwrite/Migration/Version/V24.php +++ b/src/Appwrite/Migration/Version/V24.php @@ -239,6 +239,8 @@ class V24 extends Migration 'startCommand', 'buildSpecification', 'runtimeSpecification', + 'providerBranches', + 'providerPaths', ]; try { $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); @@ -254,6 +256,8 @@ class V24 extends Migration 'deploymentRetention', 'buildSpecification', 'runtimeSpecification', + 'providerBranches', + 'providerPaths', ]; try { $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); From 0477282e213f23714b821dac1dee1ebbfb030c28 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sat, 27 Jun 2026 08:19:12 +0530 Subject: [PATCH 2/2] Fix V24 schema migration gaps --- src/Appwrite/Migration/Version/V24.php | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/Appwrite/Migration/Version/V24.php b/src/Appwrite/Migration/Version/V24.php index e22f43217a..82889f8d79 100644 --- a/src/Appwrite/Migration/Version/V24.php +++ b/src/Appwrite/Migration/Version/V24.php @@ -115,6 +115,12 @@ class V24 extends Migration } catch (Throwable $th) { Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); } + + try { + $this->createIndexFromCollection($this->dbForProject, $id, '_key_teamInternalId'); + } catch (Throwable $th) { + Console::warning("Failed to create index \"_key_teamInternalId\" from {$id}: {$th->getMessage()}"); + } } $this->dbForProject->purgeCachedCollection($id); break; @@ -213,6 +219,15 @@ class V24 extends Migration $this->dbForProject->purgeCachedCollection($id); break; + case 'memberships': + try { + $this->createIndexFromCollection($this->dbForProject, $id, '_key_team_confirm'); + } catch (Throwable $th) { + Console::warning("Failed to create index \"_key_team_confirm\" from {$id}: {$th->getMessage()}"); + } + $this->dbForProject->purgeCachedCollection($id); + break; + case 'tokens': try { $this->createIndexFromCollection($this->dbForProject, $id, '_key_type_expire'); @@ -299,6 +314,32 @@ class V24 extends Migration $this->dbForProject->purgeCachedCollection($id); break; + case 'platforms': + case 'webhooks': + if ($collectionType === 'console') { + try { + $this->createIndexFromCollection($this->dbForProject, $id, '_key_project_id'); + } catch (Throwable $th) { + Console::warning("Failed to create index \"_key_project_id\" from {$id}: {$th->getMessage()}"); + } + } + $this->dbForProject->purgeCachedCollection($id); + break; + + case 'reports': + case 'insights': + if ($collectionType === 'console') { + try { + $this->createCollection($id); + } catch (Throwable $th) { + Console::warning("Failed to create collection \"{$id}\": {$th->getMessage()}"); + + throw $th; + } + } + $this->dbForProject->purgeCachedCollection($id); + break; + case 'providers': try { $this->dbForProject->deleteIndex($id, '_key_name');