From a8319407fc653186ed9a03c0f1281b4081266a63 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Tue, 21 Jun 2022 12:17:34 +0200 Subject: [PATCH] fix: add missing indexes --- app/config/collections.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/config/collections.php b/app/config/collections.php index b8d244b6b2..6a11a3eacd 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1177,6 +1177,13 @@ $collections = [ 'lengths' => [320], 'orders' => [Database::ORDER_ASC], ], + [ + '$id' => '_key_phone', + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['phone'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], [ '$id' => '_key_search', 'type' => Database::INDEX_FULLTEXT, @@ -1744,7 +1751,7 @@ $collections = [ 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], ], [ - '$id' => '_key_internal', + '$id' => '_key_user', 'type' => Database::INDEX_KEY, 'attributes' => ['userInternalId'], 'lengths' => [Database::LENGTH_KEY],