From 75bd0dc55ba9354e9af8ff5689c42f9ce8ea2d71 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 21 Jul 2025 21:26:08 +1200 Subject: [PATCH 1/2] Update tables test --- tests/e2e/Services/Databases/Tables/DatabasesBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/Databases/Tables/DatabasesBase.php b/tests/e2e/Services/Databases/Tables/DatabasesBase.php index de54f3ce04..7804fd0ec2 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Tables/DatabasesBase.php @@ -1384,7 +1384,7 @@ trait DatabasesBase 'columns' => ['integers'], // array attribute 'orders' => ['DESC'], // Check order is removed in API ]); - $this->assertEquals(202, $index1['headers']['status-code']); + $this->assertEquals(400, $index1['headers']['status-code']); $index2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', @@ -1395,7 +1395,7 @@ trait DatabasesBase 'type' => 'key', 'columns' => ['integers'], // array attribute ]); - $this->assertEquals(202, $index2['headers']['status-code']); + $this->assertEquals(400, $index2['headers']['status-code']); /** * Create Indexes by worker From 58aaee1c4ac6e54230c1dd6fde722fc1336fcf06 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 21 Jul 2025 22:56:19 +1200 Subject: [PATCH 2/2] Downgrade migrations --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index d39cb697ae..2065139bb9 100644 --- a/composer.json +++ b/composer.json @@ -62,7 +62,7 @@ "utopia-php/locale": "0.4.*", "utopia-php/logger": "0.6.*", "utopia-php/messaging": "0.18.*", - "utopia-php/migration": "0.13.*", + "utopia-php/migration": "0.12.*", "utopia-php/orchestration": "0.9.*", "utopia-php/platform": "0.7.*", "utopia-php/pools": "0.8.*", diff --git a/composer.lock b/composer.lock index 1ff4873f4d..73baf27824 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": "ab1e70292d43534acfbab067f0341181", + "content-hash": "25ac1acb960988af5c10239c3bde258b", "packages": [ { "name": "adhocore/jwt", @@ -3993,16 +3993,16 @@ }, { "name": "utopia-php/migration", - "version": "0.13.0", + "version": "0.12.0", "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "626aa1f1e9e5bd494dc14d8639eb2fd3c29673ab" + "reference": "973a4daa283f711a104e9bb7cf5a79dec2988df0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/626aa1f1e9e5bd494dc14d8639eb2fd3c29673ab", - "reference": "626aa1f1e9e5bd494dc14d8639eb2fd3c29673ab", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/973a4daa283f711a104e9bb7cf5a79dec2988df0", + "reference": "973a4daa283f711a104e9bb7cf5a79dec2988df0", "shasum": "" }, "require": { @@ -4043,9 +4043,9 @@ ], "support": { "issues": "https://github.com/utopia-php/migration/issues", - "source": "https://github.com/utopia-php/migration/tree/0.13.0" + "source": "https://github.com/utopia-php/migration/tree/0.12.0" }, - "time": "2025-07-21T07:10:25+00:00" + "time": "2025-07-17T12:20:11+00:00" }, { "name": "utopia-php/orchestration",