mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
sync: 1.5.x
This commit is contained in:
parent
d04609b6f0
commit
124cb721b8
1 changed files with 23 additions and 0 deletions
|
|
@ -142,6 +142,29 @@ class V20 extends Migration
|
|||
$this->createCollection('challenges');
|
||||
$this->createCollection('authenticators');
|
||||
|
||||
break;
|
||||
|
||||
case 'cache':
|
||||
|
||||
// Create resourceType attribute
|
||||
try {
|
||||
$this->createAttributeFromCollection($this->projectDB, $id, 'resourceType');
|
||||
} catch (Throwable $th) {
|
||||
Console::warning("'resourceType' from {$id}: {$th->getMessage()}");
|
||||
}
|
||||
|
||||
// Create mimeType attribute
|
||||
try {
|
||||
$this->createAttributeFromCollection($this->projectDB, $id, 'mimeType');
|
||||
} catch (Throwable $th) {
|
||||
Console::warning("'mimeType' from {$id}: {$th->getMessage()}");
|
||||
}
|
||||
try {
|
||||
$this->projectDB->purgeCachedCollection($id);
|
||||
} catch (Throwable $th) {
|
||||
Console::warning("Purge cache from {$id}: {$th->getMessage()}");
|
||||
}
|
||||
|
||||
break;
|
||||
case 'stats':
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue