From bab3a49b0bed04f623d8f14292b454d726474272 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 27 Feb 2026 18:01:06 +0530 Subject: [PATCH] updated --- composer.json | 2 +- composer.lock | 16 ++++++++-------- docker-compose.yml | 5 +---- .../e2e/Services/Migrations/MigrationsBase.php | 17 +++++------------ 4 files changed, 15 insertions(+), 25 deletions(-) diff --git a/composer.json b/composer.json index 38faedba50..f016b505fa 100644 --- a/composer.json +++ b/composer.json @@ -69,7 +69,7 @@ "utopia-php/locale": "0.8.*", "utopia-php/logger": "0.6.*", "utopia-php/messaging": "0.20.*", - "utopia-php/migration": "dev-remove-dsn-callables as 1.6.2", + "utopia-php/migration": "dev-multitype-db as 1.6.2", "utopia-php/platform": "0.7.*", "utopia-php/pools": "1.*", "utopia-php/span": "1.1.*", diff --git a/composer.lock b/composer.lock index a4cc3fea3a..68ce6c6b4a 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": "082aa8800a474cf0f381344d67069961", + "content-hash": "502c839fb593cfae623f8e2eb69ff5c3", "packages": [ { "name": "adhocore/jwt", @@ -4517,16 +4517,16 @@ }, { "name": "utopia-php/migration", - "version": "dev-remove-dsn-callables", + "version": "dev-multitype-db", "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "682cdc36618a2be4fe376047a6250a3d0c4ea739" + "reference": "237513f8cd581055690ed7dad389388ac26642e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/682cdc36618a2be4fe376047a6250a3d0c4ea739", - "reference": "682cdc36618a2be4fe376047a6250a3d0c4ea739", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/237513f8cd581055690ed7dad389388ac26642e8", + "reference": "237513f8cd581055690ed7dad389388ac26642e8", "shasum": "" }, "require": { @@ -4566,9 +4566,9 @@ ], "support": { "issues": "https://github.com/utopia-php/migration/issues", - "source": "https://github.com/utopia-php/migration/tree/remove-dsn-callables" + "source": "https://github.com/utopia-php/migration/tree/multitype-db" }, - "time": "2026-02-24T05:05:52+00:00" + "time": "2026-02-25T03:19:23+00:00" }, { "name": "utopia-php/mongo", @@ -9044,7 +9044,7 @@ "aliases": [ { "package": "utopia-php/migration", - "version": "dev-remove-dsn-callables", + "version": "dev-multitype-db", "alias": "1.6.2", "alias_normalized": "1.6.2.0" } diff --git a/docker-compose.yml b/docker-compose.yml index 0565b705aa..1ee7bb8fe9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -99,6 +99,7 @@ services: - ./public:/usr/src/code/public - ./src:/usr/src/code/src - ./dev:/usr/src/code/dev + - ./vendor:/usr/src/code/vendor depends_on: - ${_APP_DB_HOST:-mongodb} @@ -1268,7 +1269,6 @@ services: start_period: 5s mariadb: - profiles: ["mariadb"] image: mariadb:10.11 # fix issues when upgrading using: mysql_upgrade -u root -p container_name: appwrite-mariadb <<: *x-logging @@ -1287,7 +1287,6 @@ services: command: "mysqld --innodb-flush-method=fsync" mongodb: - profiles: ["mongodb"] image: mongo:8.2.5 container_name: appwrite-mongodb <<: *x-logging @@ -1324,7 +1323,6 @@ services: start_period: 30s appwrite-mongo-express: - profiles: ["mongodb"] image: mongo-express container_name: appwrite-mongo-express networks: @@ -1339,7 +1337,6 @@ services: - mongodb postgresql: - profiles: ["postgresql"] build: context: ./tests/resources/postgresql args: diff --git a/tests/e2e/Services/Migrations/MigrationsBase.php b/tests/e2e/Services/Migrations/MigrationsBase.php index 9907da13b4..7524fad4b3 100644 --- a/tests/e2e/Services/Migrations/MigrationsBase.php +++ b/tests/e2e/Services/Migrations/MigrationsBase.php @@ -3,6 +3,7 @@ namespace Tests\E2E\Services\Migrations; use CURLFile; +use PHPUnit\Framework\Attributes\Depends; use Tests\E2E\Client; use Tests\E2E\General\UsageTest; use Tests\E2E\Scopes\ProjectCustom; @@ -1933,9 +1934,7 @@ trait MigrationsBase ]; } - /** - * @depends testAppwriteMigrationVectorDBDatabase - */ + #[Depends('testAppwriteMigrationVectorDBDatabase')] public function testAppwriteMigrationVectorDBCollection(array $data): array { $databaseId = $data['databaseId']; @@ -1993,9 +1992,7 @@ trait MigrationsBase ]; } - /** - * @depends testAppwriteMigrationVectorDBCollection - */ + #[Depends('testAppwriteMigrationVectorDBCollection')] public function testAppwriteMigrationVectorDBDocument(array $data): void { $databaseId = $data['databaseId']; @@ -2069,9 +2066,7 @@ trait MigrationsBase ]); } - /** - * @depends testAppwriteMigrationDocumentsDBDatabase - */ + #[Depends('testAppwriteMigrationDocumentsDBDatabase')] public function testAppwriteMigrationDocumentsDBCollection(array $data): array { $databaseId = $data['databaseId']; @@ -2132,9 +2127,7 @@ trait MigrationsBase ]; } - /** - * @depends testAppwriteMigrationDocumentsDBCollection - */ + #[Depends('testAppwriteMigrationDocumentsDBCollection')] public function testAppwriteMigrationDocumentsDBDocument(array $data): void { $databaseId = $data['databaseId'];