Skip to content

Commit

Permalink
Merge pull request #27015 from staudenmeir/migrate-pretend
Browse files Browse the repository at this point in the history
[5.7] Ignore --seed option for artisan migrate --pretend
  • Loading branch information
taylorotwell authored Dec 31, 2018
2 parents 7d3b2e8 + 33ed2ca commit 2219c7d
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 2219c7d

Please sign in to comment.