1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Fix stats migration

This commit is contained in:
Jake Barnby 2024-03-08 21:40:52 +01:00
parent b234618930
commit cfed14a378
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

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) {