diff --git a/db/migrations/5.1.57_cleanup_tool_activations.php b/db/migrations/5.1.57_cleanup_tool_activations.php
index 6700816bc85e3503c48c5bd8292a7f5eb5fad1c3..2f4bda283fde259af1975267f850462d249d5f59 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]);
     }
 };