From eb5e853f2d0fef584403d81045310c2b3488568c Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 17 Nov 2022 11:31:24 +0100 Subject: [PATCH] fix: migration for stats region --- src/Appwrite/Migration/Version/V16.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Migration/Version/V16.php b/src/Appwrite/Migration/Version/V16.php index 311cbaff2c..db13e6d182 100644 --- a/src/Appwrite/Migration/Version/V16.php +++ b/src/Appwrite/Migration/Version/V16.php @@ -50,7 +50,7 @@ class V16 extends Migration case 'sessions': try { /** - * Create 'compression' attribute + * Create 'expire' attribute */ $this->projectDB->deleteAttribute($id, 'expire'); } catch (\Throwable $th) { @@ -79,6 +79,17 @@ class V16 extends Migration } break; + case 'stats': + try { + /** + * Create 'region' attribute + */ + $this->createAttributeFromCollection($this->projectDB, $id, 'region'); + } catch (\Throwable $th) { + Console::warning("'region' from {$id}: {$th->getMessage()}"); + } + break; + default: break; }