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
This commit is contained in:
Steven Nguyen
2025-10-14 14:42:59 -07:00
parent 70bed65b9b
commit f9809293db
+12
View File
@@ -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',