Skip to content

Commit

Permalink
Ignore --seed option for artisan migrate --pretend
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Dec 31, 2018
1 parent 7d3b2e8 commit 33ed2ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function handle()
// Finally, if the "seed" option has been given, we will re-run the database
// seed task to re-populate the database, which is convenient when adding
// a migration and a seed at the same time, as it is only this command.
if ($this->option('seed')) {
if ($this->option('seed') && ! $this->option('pretend')) {
$this->call('db:seed', ['--force' => true]);
}
}
Expand Down

0 comments on commit 33ed2ca

Please sign in to comment.