Closed vesper8 closed 4 months ago
PRs are welcome
Not a PR but this is how I solved it
protected $signature = 'migrate:sync {--migration=}';
...
public function handle()
{
$files = $this->migrator->getMigrationFiles($this->getMigrationPaths());
foreach ($files as $file) {
if ($this->option('migration')) {
if (stripos($file, $this->option('migration')) > -1) {
$this->processMigration(file_get_contents($file));
}
} else {
$this->processMigration(file_get_contents($file));
}
}
...
}
It would be nice if you could specify a single migration file to perform a sync over, rather than allowing the sync command to iterate over dozens of migrations every time