updated database collection schema

This commit is contained in:
ArnabChatterjee20k committed 2026-07-07 15:36:28 +05:30
1 parent 1d264fb676
commit f3d7e7dcfd
2 files changed
+22

No files matched your search

+11
View File
@@ -69,6 +69,17 @@ return [
'signed' => true,
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('status'),
'type' => Database::VAR_STRING,
'format' => '',
'size' => 16,
'signed' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
]
],
'indexes' => [
+11
View File
@@ -63,6 +63,17 @@ class V25 extends Migration
}
$this->dbForProject->purgeCachedCollection($id);
break;
case 'databases':
if ($collectionType === 'projects') {
try {
$this->createAttributeFromCollection($this->dbForProject, $id, 'status');
} catch (Throwable $th) {
Console::warning("Failed to create attribute \"status\" in collection {$id}: {$th->getMessage()}");
}
$this->dbForProject->purgeCachedCollection($id);
}
break;
}
}
}