From 93715c256bf57cd93a1ef92e366c19f9a53ff21a Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 14 May 2026 15:53:20 +0100 Subject: [PATCH] Match upstream createKey schema in createApiKey Drop the removed projectInternalId/projectId legacy fields and use empty permissions, matching the current server-ce Project/Keys/Create action exactly. --- src/Migration/Destinations/Appwrite.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index f71a2561f3..04e6cf96bf 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -3152,14 +3152,7 @@ class Appwrite extends Destination try { $this->dbForPlatform->createDocument('keys', new UtopiaDocument([ '$id' => ID::unique(), - // Match upstream createKey — keys carry no per-doc perm semantics in Appwrite. - '$permissions' => [ - Permission::read(Role::any()), - Permission::update(Role::any()), - Permission::delete(Role::any()), - ], - 'projectInternalId' => $this->projectInternalId, - 'projectId' => $this->project, + '$permissions' => [], 'resourceInternalId' => $this->projectInternalId, 'resourceId' => $this->project, 'resourceType' => 'projects',