From 0a809f85f2a7b31967ad1802d747c29c6f184780 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 1 Oct 2025 17:58:11 -0700 Subject: [PATCH] fix(self-hosted): create missing project attributes Appwrite 1.6.1 added these attributes, but the migration was never updated to include those new attributes --- src/Appwrite/Migration/Version/V23.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Appwrite/Migration/Version/V23.php b/src/Appwrite/Migration/Version/V23.php index b3d29fad64..8a26dbf5f1 100644 --- a/src/Appwrite/Migration/Version/V23.php +++ b/src/Appwrite/Migration/Version/V23.php @@ -97,6 +97,18 @@ class V23 extends Migration $this->dbForProject->purgeCachedDocument(Database::METADATA, $id); switch ($id) { + case 'projects': + $attributes = [ + 'pingCount', + 'pingedAt' + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + $this->dbForProject->purgeCachedCollection($id); + break; case 'databases': $attributes = [ 'type',