From 85bde9351716e802a09a8e864a22742e4482589b Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Tue, 9 Jul 2024 17:40:16 +0900 Subject: [PATCH] Use keys instead of fulltext --- app/config/collections.php | 4 ++-- app/controllers/api/migrations.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/config/collections.php b/app/config/collections.php index 76f4e3e020..693c40f45c 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -4264,14 +4264,14 @@ $projectCollections = array_merge([ 'indexes' => [ [ '$id' => '_key_migrationInternalId', - 'type' => Database::INDEX_FULLTEXT, + 'type' => Database::INDEX_KEY, 'attributes' => ['migrationInternalId'], 'lengths' => [Database::LENGTH_KEY], 'orders' => [Database::ORDER_ASC], ], [ '$id' => '_key_group', - 'type' => Database::INDEX_FULLTEXT, + 'type' => Database::INDEX_KEY, 'attributes' => ['group'], 'lengths' => [Database::LENGTH_KEY], 'orders' => [Database::ORDER_ASC], diff --git a/app/controllers/api/migrations.php b/app/controllers/api/migrations.php index 06527a76f7..74ae8b591c 100644 --- a/app/controllers/api/migrations.php +++ b/app/controllers/api/migrations.php @@ -398,7 +398,7 @@ App::post('/v1/migrations/nhost') ->setProject($project) ->setUser($user); - $triggerMigration($migration->getId(), $resources, $queueForMigrations, $dbForProject); + $triggerMigration($migration, $resources, $queueForMigrations, $dbForProject); $response ->setStatusCode(Response::STATUS_CODE_ACCEPTED)