From 1be36ae552bdce2fb8d832f21c2f76593320f26f Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Mon, 27 Oct 2025 16:19:04 +0530 Subject: [PATCH] updated deps --- composer.json | 2 +- composer.lock | 130 +++++++----------- .../Databases/Collections/Indexes/Create.php | 17 +-- 3 files changed, 54 insertions(+), 95 deletions(-) diff --git a/composer.json b/composer.json index b4b85ac19d..3d28409c8d 100644 --- a/composer.json +++ b/composer.json @@ -54,7 +54,7 @@ "utopia-php/cache": "0.13.*", "utopia-php/cli": "0.15.*", "utopia-php/config": "0.2.*", - "utopia-php/database": "3.*", + "utopia-php/database": "dev-var_object as 1.4.5", "utopia-php/detector": "0.2.*", "utopia-php/domains": "0.9.*", "utopia-php/dns": "0.3.*", diff --git a/composer.lock b/composer.lock index 4e5187d555..7c06f50314 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f826d3b283b10af98dfd565c4187a83a", + "content-hash": "7f99c98a17e1d3608bf1c26f76bca972", "packages": [ { "name": "adhocore/jwt", @@ -952,7 +952,7 @@ "source": "https://github.com/matomo-org/matomo", "wiki": "https://dev.matomo.org/" }, - "time": "2025-08-20T17:20:16+00:00" + "time": "2023-10-02T10:01:54+00:00" }, { "name": "mongodb/mongodb", @@ -3785,66 +3785,18 @@ }, "time": "2020-10-24T09:49:09+00:00" }, - { - "name": "utopia-php/console", - "version": "0.0.1", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/console.git", - "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/console/zipball/f77104e4a888fa9cb3e08f32955ec09479ab7a92", - "reference": "f77104e4a888fa9cb3e08f32955ec09479ab7a92", - "shasum": "" - }, - "require": { - "php": ">=7.4" - }, - "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.3", - "squizlabs/php_codesniffer": "^3.6", - "swoole/ide-helper": "4.8.8" - }, - "type": "library", - "autoload": { - "psr-4": { - "Utopia\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Console helpers for logging, prompting, and executing commands", - "keywords": [ - "cli", - "console", - "php", - "terminal", - "utopia" - ], - "support": { - "issues": "https://github.com/utopia-php/console/issues", - "source": "https://github.com/utopia-php/console/tree/0.0.1" - }, - "time": "2025-10-20T14:41:36+00:00" - }, { "name": "utopia-php/database", - "version": "3.0.2", + "version": "dev-var_object", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "b92554e2e7b3b00f0f0acb2b53c6a11e1349b81e" + "reference": "e2768d9d35e0e31a12e4e63d48f6806651de0225" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/b92554e2e7b3b00f0f0acb2b53c6a11e1349b81e", - "reference": "b92554e2e7b3b00f0f0acb2b53c6a11e1349b81e", + "url": "https://api.github.com/repos/utopia-php/database/zipball/e2768d9d35e0e31a12e4e63d48f6806651de0225", + "reference": "e2768d9d35e0e31a12e4e63d48f6806651de0225", "shasum": "" }, "require": { @@ -3853,9 +3805,9 @@ "ext-pdo": "*", "php": ">=8.1", "utopia-php/cache": "0.13.*", - "utopia-php/framework": "0.33.*", "utopia-php/mongo": "0.11.*", - "utopia-php/pools": "0.8.*" + "utopia-php/pools": "0.8.*", + "utopia-php/validators": "0.0.*" }, "require-dev": { "fakerphp/faker": "1.23.*", @@ -3887,9 +3839,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/3.0.2" + "source": "https://github.com/utopia-php/database/tree/var_object" }, - "time": "2025-10-20T23:58:56+00:00" + "time": "2025-10-27T10:06:02+00:00" }, { "name": "utopia-php/detector", @@ -4390,16 +4342,16 @@ }, { "name": "utopia-php/migration", - "version": "1.3.2", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "f5c1d2cae764290766a4c2d1546c1d51de95b67f" + "reference": "d0f9978aff8be3c160df50fcbb1ae35ffea7476b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/f5c1d2cae764290766a4c2d1546c1d51de95b67f", - "reference": "f5c1d2cae764290766a4c2d1546c1d51de95b67f", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/d0f9978aff8be3c160df50fcbb1ae35ffea7476b", + "reference": "d0f9978aff8be3c160df50fcbb1ae35ffea7476b", "shasum": "" }, "require": { @@ -4407,9 +4359,9 @@ "ext-curl": "*", "ext-openssl": "*", "php": ">=8.1", - "utopia-php/console": "0.0.*", - "utopia-php/database": "3.*", + "utopia-php/database": "1.*", "utopia-php/dsn": "0.2.*", + "utopia-php/framework": "0.33.*", "utopia-php/storage": "0.18.*" }, "require-dev": { @@ -4417,6 +4369,7 @@ "laravel/pint": "1.*", "phpstan/phpstan": "1.*", "phpunit/phpunit": "11.*", + "utopia-php/cli": "0.16.*", "vlucas/phpdotenv": "5.*" }, "type": "library", @@ -4439,9 +4392,9 @@ ], "support": { "issues": "https://github.com/utopia-php/migration/issues", - "source": "https://github.com/utopia-php/migration/tree/1.3.2" + "source": "https://github.com/utopia-php/migration/tree/1.2.1" }, - "time": "2025-10-22T12:30:47+00:00" + "time": "2025-10-13T01:55:03+00:00" }, { "name": "utopia-php/mongo", @@ -5313,16 +5266,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.4.11", + "version": "1.4.13", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "5970defc3c6e64817fe9847c0b33c87af71709c5" + "reference": "db1a0f9b4ae003759bc67e15470160f3775536f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/5970defc3c6e64817fe9847c0b33c87af71709c5", - "reference": "5970defc3c6e64817fe9847c0b33c87af71709c5", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/db1a0f9b4ae003759bc67e15470160f3775536f8", + "reference": "db1a0f9b4ae003759bc67e15470160f3775536f8", "shasum": "" }, "require": { @@ -5358,9 +5311,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/1.4.11" + "source": "https://github.com/appwrite/sdk-generator/tree/1.4.13" }, - "time": "2025-10-24T10:03:09+00:00" + "time": "2025-10-27T08:35:36+00:00" }, { "name": "doctrine/annotations", @@ -6064,16 +6017,16 @@ }, { "name": "phpbench/phpbench", - "version": "1.4.1", + "version": "1.4.2", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b" + "reference": "bb61ae6c54b3d58642be154eb09f4e73c3511018" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", - "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/bb61ae6c54b3d58642be154eb09f4e73c3511018", + "reference": "bb61ae6c54b3d58642be154eb09f4e73c3511018", "shasum": "" }, "require": { @@ -6100,7 +6053,7 @@ "ergebnis/composer-normalize": "^2.39", "friendsofphp/php-cs-fixer": "^3.0", "jangregor/phpstan-prophecy": "^1.0", - "phpspec/prophecy": "dev-master", + "phpspec/prophecy": "^1.22", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-phpunit": "^1.0", @@ -6150,7 +6103,7 @@ ], "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.4.1" + "source": "https://github.com/phpbench/phpbench/tree/1.4.2" }, "funding": [ { @@ -6158,7 +6111,7 @@ "type": "github" } ], - "time": "2025-03-12T08:01:40+00:00" + "time": "2025-10-26T14:21:59+00:00" }, { "name": "phpstan/phpstan", @@ -8825,10 +8778,19 @@ "time": "2024-03-07T20:33:40+00:00" } ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, + "aliases": [ + { + "package": "utopia-php/database", + "version": "dev-var_object", + "alias": "1.4.5", + "alias_normalized": "1.4.5.0" + } + ], + "minimum-stability": "dev", + "stability-flags": { + "utopia-php/database": 20 + }, + "prefer-stable": true, "prefer-lowest": false, "platform": { "php": ">=8.3.0", @@ -8851,5 +8813,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php index c353eb7e88..f1c3e07400 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php @@ -206,16 +206,12 @@ class Create extends Action $validator = new IndexValidator( $collection->getAttribute('attributes'), $collection->getAttribute('indexes'), - $collection->getAttribute('indexes'), - $dbForProject->getAdapter()->getMaxIndexLength(), - $dbForProject->getAdapter()->getInternalIndexesKeys(), - $dbForProject->getAdapter()->getSupportForIndexArray(), - $dbForProject->getAdapter()->getSupportForSpatialIndexNull(), - $dbForProject->getAdapter()->getSupportForSpatialIndexOrder(), - $dbForProject->getAdapter()->getSupportForVectors(), - $dbForProject->getAdapter()->getSupportForAttributes(), - $dbForProject->getAdapter()->getSupportForMultipleFulltextIndexes(), - $dbForProject->getAdapter()->getSupportForIdenticalIndexes(), + $maxIndexLength, + $internalIndexesKeys, + $supportForIndexArray, + $supportForSpatialAttributes, + $supportForSpatialIndexNull, + $supportForSpatialIndexOrder, $supportForAttributes, $supportForMultipleFulltextIndexes, $supportForIdenticalIndexes @@ -260,3 +256,4 @@ class Create extends Action ->dynamic($index, $this->getResponseModel()); } } +} \ No newline at end of file