Don't traverse schema query if the last successfully migrated version is found
This commit is contained in:
parent
73b1041816
commit
ac24c6d34b
|
@ -36,6 +36,8 @@ class DbMigration extends MigrationHook
|
|||
foreach ($schemaQuery as $schema) {
|
||||
if ($schema->success) {
|
||||
$this->version = $schema->version;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue