mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #7760 from appwrite/fix-stat-migration
Fix stats migration
This commit is contained in:
commit
8ff3d0e97f
1 changed files with 9 additions and 0 deletions
|
|
@ -180,6 +180,15 @@ class V20 extends Migration
|
||||||
Console::warning("'type' from {$id}: {$th->getMessage()}");
|
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 {
|
try {
|
||||||
$this->projectDB->purgeCachedCollection($id);
|
$this->projectDB->purgeCachedCollection($id);
|
||||||
} catch (Throwable $th) {
|
} catch (Throwable $th) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue