Don't traverse schema query if the last successfully migrated version is found

This commit is contained in:
Yonas Habteab 2023-09-13 15:15:08 +02:00 committed by Johannes Meyer
parent 73b1041816
commit ac24c6d34b

View File

@ -36,6 +36,8 @@ class DbMigration extends MigrationHook
foreach ($schemaQuery as $schema) { foreach ($schemaQuery as $schema) {
if ($schema->success) { if ($schema->success) {
$this->version = $schema->version; $this->version = $schema->version;
break;
} }
} }