Skip to content

Commit 8ca83d0

Browse files
committed
Fix output
1 parent 70a57d6 commit 8ca83d0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Database/Commands/MigrateCommand.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ private function getMigrator(string $track): Migrator
8888
->setOutput($this->output);
8989
}
9090

91-
return $this->migrators[$track] ??= app(Migrator::class)
92-
->setOutput($this->output)
93-
->track($track);
91+
return ($this->migrators[$track] ??= app(Migrator::class)->track($track))
92+
->setOutput($this->output);
9493
}
9594

9695
private function runMigrations(): void
@@ -163,7 +162,7 @@ function () use (&$migrationsByTrack, &$plugins) {
163162
// Update version info
164163
if ($track === 'craft') {
165164
$this->updates->updateCraftVersionInfo();
166-
} elseif ($track !== 'content') {
165+
} elseif (str_starts_with((string) $track, 'plugin')) {
167166
$this->plugins->updatePluginVersionInfo($plugins[substr((string) $track, 7)]);
168167
}
169168
}
@@ -216,6 +215,8 @@ private function gatherMigrationsByTrack(array &$migrationsByTrack, array &$plug
216215
continue;
217216
}
218217

218+
$this->migrators[$track] = $migrator;
219+
219220
if (! empty($migrations = $migrator->getPendingMigrations())) {
220221
$migrationsByTrack[$track] = $migrations;
221222
}

0 commit comments

Comments
 (0)