diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php index 4bacbb8f77..a0ee24db87 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php @@ -371,7 +371,7 @@ class Create extends Action $lengths[$i] = Database::MAX_ARRAY_INDEX_LENGTH; $orders[$i] = null; - if($dbForDatabases->getAdapter()->getSupportForAttributes()){ + if ($dbForDatabases->getAdapter()->getSupportForAttributes()) { // Because of a bug in MySQL, we cannot create indexes on array attributes for now, otherwise queries break. throw new Exception(Exception::INDEX_INVALID, 'Creating indexes on array attributes is not currently supported.'); }