mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-22 00:03:48 +01:00
Ask for migration only in verbose one (-v).
This commit is contained in:
parent
5ed8cf0520
commit
99dc437b9e
@ -237,7 +237,13 @@ task('database:migrate', function () {
|
||||
$prod = get('env', 'prod');
|
||||
$serverName = config()->getName();
|
||||
|
||||
if (askConfirmation("Run migrations on <info>$serverName</info> server?", get('auto_migrate', false))) {
|
||||
$run = get('auto_migrate', false);
|
||||
|
||||
if (output()->isVerbose()) {
|
||||
$run = askConfirmation("Run migrations on $serverName server?", $run);
|
||||
}
|
||||
|
||||
if ($run) {
|
||||
run("php $releasePath/app/console doctrine:migrations:migrate --env=$prod --no-debug --no-interaction");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user