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
1 changed files with 2 additions and 0 deletions

View File

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