Skip to content

Commit cdcd6fa

Browse files
authored
Fixed an issue causing install command to not add two_factor_confirmed_at column in users table if user decides to run migration from it. (#1496)
1 parent 9892b99 commit cdcd6fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Console/InstallCommand.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,11 @@ protected static function updateNodePackages(callable $callback, $dev = true)
755755
protected function runDatabaseMigrations()
756756
{
757757
if (confirm('New database migrations were added. Would you like to re-run your migrations?', true)) {
758-
$this->call('migrate:fresh', ['--force' => true]);
758+
(new Process([$this->phpBinary(), 'artisan', 'migrate:fresh', '--force'], base_path()))
759+
->setTimeout(null)
760+
->run(function ($type, $output) {
761+
$this->output->write($output);
762+
});
759763
}
760764
}
761765

0 commit comments

Comments
 (0)