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 { /**