Skip to content

Commit

Permalink
Fix issue with -g option
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuno Castro committed Sep 2, 2023
1 parent 411a9bb commit 3531d7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/Database/MigrationRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,14 @@ public function latest(?string $group = null)
throw ConfigException::forDisabledMigrations();
}

$this->ensureTable();

if ($group !== null) {
$this->groupFilter = $group;
$this->setGroup($group);
}

$this->ensureTable();

$migrations = $this->findMigrations();

if (empty($migrations)) {
Expand Down

0 comments on commit 3531d7b

Please sign in to comment.