From 6a69943b16197ce98474953e6d425b520a834865 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Mon, 6 May 2024 11:53:47 +0200
Subject: [PATCH] select plugins correctly, re #3977

---
 db/migrations/5.1.57_cleanup_tool_activations.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/db/migrations/5.1.57_cleanup_tool_activations.php b/db/migrations/5.1.57_cleanup_tool_activations.php
index 6700816bc85..2f4bda283fd 100644
--- a/db/migrations/5.1.57_cleanup_tool_activations.php
+++ b/db/migrations/5.1.57_cleanup_tool_activations.php
@@ -17,7 +17,8 @@ return new class extends Migration
                       SELECT `pluginid`
                       FROM `plugins`
                       WHERE FIND_IN_SET(?, `plugintype`)
+                         OR FIND_IN_SET(?, `plugintype`)
                   )";
-        DBManager::get()->execute($query, [StandardPlugin::class]);
+        DBManager::get()->execute($query, [StudipModule::class, StandardPlugin::class]);
     }
 };
-- 
GitLab