From a3503f4124b1c41bf764dacd773f2f1656f2e182 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 18 Feb 2026 20:58:54 +1300 Subject: [PATCH] fix: revert accidentally committed working tree changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverts composer.lock (database 5.3.0→5.2.1), Model.php TYPE_ID, Document.php/Row.php $sequence type changes, and OpenAPI/Swagger id type additions that were unintentionally included in dd1a3d82. Co-Authored-By: Claude Opus 4.6 --- composer.lock | 36 +++++++++---------- .../SDK/Specification/Format/OpenAPI3.php | 1 - .../SDK/Specification/Format/Swagger2.php | 1 - src/Appwrite/Utopia/Response/Model.php | 1 - .../Utopia/Response/Model/Document.php | 4 +-- src/Appwrite/Utopia/Response/Model/Row.php | 4 +-- 6 files changed, 22 insertions(+), 25 deletions(-) diff --git a/composer.lock b/composer.lock index df992e9534..c1e5587311 100644 --- a/composer.lock +++ b/composer.lock @@ -3797,16 +3797,16 @@ }, { "name": "utopia-php/database", - "version": "5.3.0", + "version": "5.2.1", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "5e49f32ebb6e40a78209231564c40e5068810429" + "reference": "adfdf201144353a1d2ce14bb197ab746079894e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/5e49f32ebb6e40a78209231564c40e5068810429", - "reference": "5e49f32ebb6e40a78209231564c40e5068810429", + "url": "https://api.github.com/repos/utopia-php/database/zipball/adfdf201144353a1d2ce14bb197ab746079894e0", + "reference": "adfdf201144353a1d2ce14bb197ab746079894e0", "shasum": "" }, "require": { @@ -3849,9 +3849,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/5.3.0" + "source": "https://github.com/utopia-php/database/tree/5.2.1" }, - "time": "2026-02-17T11:50:01+00:00" + "time": "2026-02-16T11:01:13+00:00" }, { "name": "utopia-php/detector", @@ -5385,16 +5385,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.9.3", + "version": "1.9.2", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "5a8a304e404c84539f3ac6562c736f8c7ef2bef2" + "reference": "74de906ea5051030c5299a5d4aa74d963a531130" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/5a8a304e404c84539f3ac6562c736f8c7ef2bef2", - "reference": "5a8a304e404c84539f3ac6562c736f8c7ef2bef2", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/74de906ea5051030c5299a5d4aa74d963a531130", + "reference": "74de906ea5051030c5299a5d4aa74d963a531130", "shasum": "" }, "require": { @@ -5430,9 +5430,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.9.3" + "source": "https://github.com/appwrite/sdk-generator/tree/1.9.2" }, - "time": "2026-02-17T11:48:05+00:00" + "time": "2026-02-16T06:59:54+00:00" }, { "name": "brianium/paratest", @@ -6778,16 +6778,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.5.12", + "version": "12.5.11", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "418e06b3b46b0d54bad749ff4907fc7dfb530199" + "reference": "9b518cb40f9474572c9f0178e96ff3dc1cf02bf1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/418e06b3b46b0d54bad749ff4907fc7dfb530199", - "reference": "418e06b3b46b0d54bad749ff4907fc7dfb530199", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9b518cb40f9474572c9f0178e96ff3dc1cf02bf1", + "reference": "9b518cb40f9474572c9f0178e96ff3dc1cf02bf1", "shasum": "" }, "require": { @@ -6856,7 +6856,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.12" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.11" }, "funding": [ { @@ -6880,7 +6880,7 @@ "type": "tidelift" } ], - "time": "2026-02-16T08:34:36+00:00" + "time": "2026-02-10T12:32:02+00:00" }, { "name": "psr/cache", diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 1a3fffb479..8e710cd0ac 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -839,7 +839,6 @@ class OpenAPI3 extends Format case 'string': case 'datetime': case 'payload': - case 'id': $type = 'string'; break; diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index bad6117d07..d70bda9285 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -819,7 +819,6 @@ class Swagger2 extends Format switch ($rule['type']) { case 'string': case 'datetime': - case 'id': $type = 'string'; break; diff --git a/src/Appwrite/Utopia/Response/Model.php b/src/Appwrite/Utopia/Response/Model.php index b32894ab3c..687b8b3eba 100644 --- a/src/Appwrite/Utopia/Response/Model.php +++ b/src/Appwrite/Utopia/Response/Model.php @@ -17,7 +17,6 @@ abstract class Model public const TYPE_PAYLOAD = 'payload'; public const TYPE_ARRAY = 'array'; public const TYPE_ENUM = 'enum'; - public const TYPE_ID = 'id'; /** * @var bool diff --git a/src/Appwrite/Utopia/Response/Model/Document.php b/src/Appwrite/Utopia/Response/Model/Document.php index f5fe25f233..1fed9b26cf 100644 --- a/src/Appwrite/Utopia/Response/Model/Document.php +++ b/src/Appwrite/Utopia/Response/Model/Document.php @@ -37,7 +37,7 @@ class Document extends Any 'example' => '5e5ea5c16897e', ]) ->addRule('$sequence', [ - 'type' => self::TYPE_ID, + 'type' => self::TYPE_STRING, 'description' => 'Document sequence ID.', 'default' => '', 'example' => '1', @@ -85,7 +85,7 @@ class Document extends Any if (!$document->isEmpty()) { $sequence = $document->getAttribute('$sequence', ''); - $document->setAttribute('$sequence', $sequence); + $document->setAttribute('$sequence', (string)$sequence); } foreach ($document->getAttributes() as $attribute) { diff --git a/src/Appwrite/Utopia/Response/Model/Row.php b/src/Appwrite/Utopia/Response/Model/Row.php index e1ea132d0b..8f663f92af 100644 --- a/src/Appwrite/Utopia/Response/Model/Row.php +++ b/src/Appwrite/Utopia/Response/Model/Row.php @@ -37,7 +37,7 @@ class Row extends Any 'example' => '5e5ea5c16897e', ]) ->addRule('$sequence', [ - 'type' => self::TYPE_ID, + 'type' => self::TYPE_STRING, 'description' => 'Row sequence ID.', 'default' => '', 'example' => '1', @@ -83,7 +83,7 @@ class Row extends Any $document->removeAttribute('$collection'); $document->removeAttribute('$tenant'); $sequence = $document->getAttribute('$sequence', ''); - $document->setAttribute('$sequence', $sequence); + $document->setAttribute('$sequence', (string)$sequence); foreach ($document->getAttributes() as $column) { if (\is_array($column)) {