Skip to content

Commit

Permalink
Add once() to migrate as done in upstream tasks
Browse files Browse the repository at this point in the history
Noticing that the overridden `artisan:migrate` command is missing the upstream change to only have it run on the first server.

Was added in c1309f255fc6756c70c42465f76e3d08cbeebc7a

And re-added in deployphp/deployer#2169
  • Loading branch information
joelpittet authored Sep 24, 2020
1 parent a8feae3 commit bd87fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task/artisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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 bd87fa6

Please sign in to comment.