From f523bc889ef83132569bde2abde6d291834b11b8 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 6 May 2024 12:45:29 +0200 Subject: [PATCH] DbMigration: Break once a correct schema version is found --- library/Reporting/ProvidedHook/DbMigration.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Reporting/ProvidedHook/DbMigration.php b/library/Reporting/ProvidedHook/DbMigration.php index 2fa5cda..27830a0 100644 --- a/library/Reporting/ProvidedHook/DbMigration.php +++ b/library/Reporting/ProvidedHook/DbMigration.php @@ -53,6 +53,8 @@ public function getVersion(): string foreach ($schema as $version) { if ($version->success) { $this->version = $version->version; + + break; } }