Use keys instead of fulltext

This commit is contained in:
Bradley Schofield
2024-07-09 17:40:16 +09:00
parent ca06cc72f2
commit 85bde93517
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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],
+1 -1
View File
@@ -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)