mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
refactor: Use count()
to count $initialMigrations elements
This commit is contained in:
parent
30c1038b3e
commit
64501a2234
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ class MigrationStatus
|
|||
WHERE version IN ($initialMigrationsCSV)
|
||||
")->fetch();
|
||||
|
||||
return $result && $result->migration_count >= 2;
|
||||
return $result && $result->migration_count >= count($this->initialMigrations);
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue