From 52d4b649e4710a8cd94a9866742c35cce48e3f3f Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 21 Feb 2024 13:09:14 +1300 Subject: [PATCH] Add missing unique index --- app/config/collections.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/config/collections.php b/app/config/collections.php index a8965c011d..cdc5d03b8d 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -2113,6 +2113,13 @@ $commonCollections = [ 'lengths' => [], 'orders' => [], ], + [ + '$id' => ID::custom('_unique_target_topic'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['targetInternalId', 'topicInternalId'], + 'lengths' => [], + 'orders' => [], + ], [ '$id' => ID::custom('_fulltext_search'), 'type' => Database::INDEX_FULLTEXT,