Skip to content

Commit 04a6388

Browse files
committed
Custom migrators should also be filtered based on track
1 parent 213dfca commit 04a6388

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Database/Commands/MigrateCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ private function gatherMigrationsByTrack(array &$migrationsByTrack, array &$plug
215215
continue;
216216
}
217217

218+
if ($this->option('track') && $this->option('track') !== $track) {
219+
continue;
220+
}
221+
218222
$this->migrators[$track] = $migrator;
219223

220224
if (! empty($migrations = $migrator->getPendingMigrations())) {

0 commit comments

Comments
 (0)