diff --git a/src/Appwrite/Migration/Version/V23.php b/src/Appwrite/Migration/Version/V23.php index c7be832626..64a45fc9b2 100644 --- a/src/Appwrite/Migration/Version/V23.php +++ b/src/Appwrite/Migration/Version/V23.php @@ -139,7 +139,7 @@ class V23 extends Migration } catch (\Throwable $th) { Console::warning("Failed to migration error attribute size in collection {$id}: {$th->getMessage()}"); } - + break; case 'buckets': try { $this->createAttributeFromCollection($this->dbForProject, $id, 'transformations'); @@ -148,6 +148,21 @@ class V23 extends Migration } $this->dbForProject->purgeCachedCollection($id); break; + case 'users': + $attributes = [ + 'emailCanonical', + 'emailIsFree', + 'emailIsDisposable', + 'emailIsCorporate', + 'emailIsCanonical', + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + $this->dbForProject->purgeCachedCollection($id); + break; default: break; }