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-01 17:58:11 -07:00
parent a9b18811ea
commit 0a809f85f2
No known key found for this signature in database

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',