Skip to content

Commit 13a870c

Browse files
author
Nuno Castro
committed
Fix issue with -g option
1 parent 411a9bb commit 13a870c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Database/MigrationRunner.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,14 @@ public function latest(?string $group = null)
165165
throw ConfigException::forDisabledMigrations();
166166
}
167167

168-
$this->ensureTable();
169168

170169
if ($group !== null) {
171170
$this->groupFilter = $group;
172171
$this->setGroup($group);
173172
}
174173

174+
$this->ensureTable();
175+
175176
$migrations = $this->findMigrations();
176177

177178
if (empty($migrations)) {

0 commit comments

Comments
 (0)