diff --git a/core/Application.php b/core/Application.php index 89952d89520dd..abc6f22c6c644 100644 --- a/core/Application.php +++ b/core/Application.php @@ -260,6 +260,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) {