mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user