diff --git a/composer.lock b/composer.lock index 1eab1f0da8..6898fda939 100644 --- a/composer.lock +++ b/composer.lock @@ -4584,12 +4584,12 @@ "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "0d0129f15d4daaf6ee14ac361a60036997569382" + "reference": "f6eadfcd91b60f59cf6ea3af14659466caf196b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/0d0129f15d4daaf6ee14ac361a60036997569382", - "reference": "0d0129f15d4daaf6ee14ac361a60036997569382", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/f6eadfcd91b60f59cf6ea3af14659466caf196b8", + "reference": "f6eadfcd91b60f59cf6ea3af14659466caf196b8", "shasum": "" }, "require": { @@ -9110,5 +9110,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.9.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 cc02731e10..a46c1e935e 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,12 +206,12 @@ class Create extends Action $dbForDatabases->getAdapter()->getSupportForAttributes(), $dbForDatabases->getAdapter()->getSupportForMultipleFulltextIndexes(), $dbForDatabases->getAdapter()->getSupportForIdenticalIndexes(), - $dbForProject->getAdapter()->getSupportForObjectIndexes(), - $dbForProject->getAdapter()->getSupportForTrigramIndex(), - $dbForProject->getAdapter()->getSupportForSpatialAttributes(), - $dbForProject->getAdapter()->getSupportForIndex(), - $dbForProject->getAdapter()->getSupportForUniqueIndex(), - $dbForProject->getAdapter()->getSupportForFulltextIndex(), + $dbForDatabases->getAdapter()->getSupportForObjectIndexes(), + $dbForDatabases->getAdapter()->getSupportForTrigramIndex(), + $dbForDatabases->getAdapter()->getSupportForSpatialAttributes(), + $dbForDatabases->getAdapter()->getSupportForIndex(), + $dbForDatabases->getAdapter()->getSupportForUniqueIndex(), + $dbForDatabases->getAdapter()->getSupportForFulltextIndex(), ); if (!$validator->isValid($index)) { diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 9dccd9a72f..36532c949e 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -220,7 +220,7 @@ class Migrations extends Action $credentials['port'], ), SourceAppwrite::getName() => new SourceAppwrite( - $credentials['endpoint'] === 'http://localhost/v1' ? 'http://appwrite/v1' : $credentials['endpoint'], + $credentials['projectId'], $credentials['endpoint'], $credentials['apiKey'], $getDatabasesDB,