diff --git a/core/Application.php b/core/Application.php index bc8e069ce6b19..d2bcb18bafb3e 100644 --- a/core/Application.php +++ b/core/Application.php @@ -224,6 +224,12 @@ public function __construct() { 'systag_by_tagid', ['systemtagid', 'objecttype'] ); + + $event->addMissingIndex( + 'systemtag_object_mapping', + 'systag_by_objectid', + ['objectid'] + ); }); $eventDispatcher->addListener(AddMissingPrimaryKeyEvent::class, function (AddMissingPrimaryKeyEvent $event) {