Skip to content

Commit

Permalink
Simplify php artisan:redo command, basing it on migrate:refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsa committed Jan 8, 2024
1 parent 82a30a0 commit fa801e3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Illuminate/Database/Console/Migrations/RedoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ public function handle()
return 1;
}

$this->call('migrate:rollback', array_filter([
'--step' => $this->option('step') ?? 1,
]));

$this->call('migrate', array_filter([
$this->call('migrate:refresh', array_filter([
'--step' => $this->option('step') ?? 1,
]));

Expand Down

0 comments on commit fa801e3

Please sign in to comment.