From bd87fa66272096aae4fdea79a3e4879c45dbab8d Mon Sep 17 00:00:00 2001 From: Joel Pittet Date: Wed, 23 Sep 2020 17:58:02 -0700 Subject: [PATCH] Add once() to migrate as done in upstream tasks 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 https://github.com/deployphp/deployer/pull/2169 --- src/task/artisan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task/artisan.php b/src/task/artisan.php index 4dd5843..6a31386 100644 --- a/src/task/artisan.php +++ b/src/task/artisan.php @@ -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'));