diff --git a/src/Appwrite/Migration/Version/V23.php b/src/Appwrite/Migration/Version/V23.php index 82acf40149..9d724bac0a 100644 --- a/src/Appwrite/Migration/Version/V23.php +++ b/src/Appwrite/Migration/Version/V23.php @@ -132,6 +132,14 @@ class V23 extends Migration } $this->dbForProject->purgeCachedCollection($id); break; + case 'buckets': + try { + $this->createAttributeFromCollection($this->dbForProject, $id, 'transformations'); + } catch (Throwable $th) { + Console::warning("'transformations' from {$id}: {$th->getMessage()}"); + } + $this->dbForProject->purgeCachedCollection($id); + break; default: break; } @@ -146,16 +154,6 @@ class V23 extends Migration } catch (Throwable $th) { Console::warning("(platform) 'transformations' from 'buckets': {$th->getMessage()}"); } - - try { - $this->createAttributeFromCollection( - $this->dbForProject, - 'buckets', - 'transformations', - ); - } catch (Throwable $th) { - Console::warning("'transformations' from 'buckets': {$th->getMessage()}"); - } } /**