Skip to content

Commit

Permalink
Fixed an issue causing install command to not add two_factor_confirme…
Browse files Browse the repository at this point in the history
…d_at column in users table if user decides to run migration from it. (#1496)
  • Loading branch information
ravibpatel committed May 30, 2024
1 parent 9892b99 commit cdcd6fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,11 @@ protected static function updateNodePackages(callable $callback, $dev = true)
protected function runDatabaseMigrations()
{
if (confirm('New database migrations were added. Would you like to re-run your migrations?', true)) {
$this->call('migrate:fresh', ['--force' => true]);
(new Process([$this->phpBinary(), 'artisan', 'migrate:fresh', '--force'], base_path()))
->setTimeout(null)
->run(function ($type, $output) {
$this->output->write($output);
});
}
}

Expand Down

0 comments on commit cdcd6fa

Please sign in to comment.