Skip to content

Commit

Permalink
Laravel Task artisan:migrate should only run once (deployphp#2169)
Browse files Browse the repository at this point in the history
Add once() again command that got dropped from the v7 updated commit.
  • Loading branch information
joelpittet authored Sep 24, 2020
1 parent a55c14f commit 44f5f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function laravel_version_compare($version, $comparator)
task('artisan:down', artisan('down', ['runInCurrent', 'showOutput']));

desc('Execute artisan migrate');
task('artisan:migrate', artisan('migrate --force', ['skipIfNoEnv']));
task('artisan:migrate', artisan('migrate --force', ['skipIfNoEnv']))->once();

desc('Execute artisan migrate:fresh');
task('artisan:migrate:fresh', artisan('migrate:fresh --force'));
Expand Down

0 comments on commit 44f5f84

Please sign in to comment.