From bb98033aed7b52b961512cb9d9191e6230c908d1 Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 15 Feb 2023 11:21:31 +0200 Subject: [PATCH] few last updates --- CHANGES.md | 1 + src/Appwrite/Migration/Version/V17.php | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index c2121c80eb..4a98953796 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ - Deprecated influxdb, telegraf containers and removed all of their occurrences from the code. - Removed _APP_INFLUXDB_HOST, _APP_INFLUXDB_PORT, _APP_STATSD_HOST, _APP_STATSD_PORT env variables. - Removed usage labels dependency. + - Dropped type attribute from stats collection. - Usage metrics are processed via new usage worker. - Metrics changes: - Storage diff --git a/src/Appwrite/Migration/Version/V17.php b/src/Appwrite/Migration/Version/V17.php index f841fcab52..ea149c1acb 100644 --- a/src/Appwrite/Migration/Version/V17.php +++ b/src/Appwrite/Migration/Version/V17.php @@ -99,6 +99,18 @@ class V17 extends Migration } break; + case 'stats': + try { + /** + * Delete 'type' attribute + */ + $this->projectDB->deleteAttribute($id, 'type'); + $this->projectDB->deleteCachedCollection($id); + } catch (\Throwable $th) { + Console::warning("'type' from {$id}: {$th->getMessage()}"); + } + break; + case 'schedules': try { /**