diff --git a/core/Application.php b/core/Application.php index 89952d89520..abc6f22c6c6 100644 --- a/core/Application.php +++ b/core/Application.php @@ -260,6 +260,12 @@ class Application extends App { 'systag_by_tagid', ['systemtagid', 'objecttype'] ); + + $event->addMissingIndex( + 'systemtag_object_mapping', + 'systag_by_objectid', + ['objectid'] + ); }); $eventDispatcher->addListener(AddMissingPrimaryKeyEvent::class, function (AddMissingPrimaryKeyEvent $event) {