1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Merge pull request #7760 from appwrite/fix-stat-migration

Fix stats migration
This commit is contained in:
Torsten Dittmann 2024-03-08 21:49:56 +01:00 committed by GitHub
commit 8ff3d0e97f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,6 +180,15 @@ class V20 extends Migration
Console::warning("'type' from {$id}: {$th->getMessage()}");
}
try {
/**
* Ensure 'time' attribute is not required
*/
$this->projectDB->updateAttribute($id, 'time', required: false);
} catch (Throwable $th) {
Console::warning("'time' from {$id}: {$th->getMessage()}");
}
try {
$this->projectDB->purgeCachedCollection($id);
} catch (Throwable $th) {