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)