mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
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:
parent
a9b18811ea
commit
0a809f85f2
1 changed files with 12 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue