Differential D16848 Diff 40576 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | if ($apply_only) { | ||||
| './bin/storage status')); | './bin/storage status')); | ||||
| } | } | ||||
| } | } | ||||
| $no_quickstart = $args->getArg('no-quickstart'); | $no_quickstart = $args->getArg('no-quickstart'); | ||||
| $init_only = $args->getArg('init-only'); | $init_only = $args->getArg('init-only'); | ||||
| $no_adjust = $args->getArg('no-adjust'); | $no_adjust = $args->getArg('no-adjust'); | ||||
| $this->upgradeSchemata($apply_only, $no_quickstart, $init_only); | $apis = $this->getMasterAPIs(); | ||||
| foreach ($apis as $api) { | |||||
| $this->upgradeSchemata($api, $apply_only, $no_quickstart, $init_only); | |||||
| if ($no_adjust || $init_only || $apply_only) { | if ($no_adjust || $init_only || $apply_only) { | ||||
| $console->writeOut( | $console->writeOut( | ||||
| "%s\n", | "%s\n", | ||||
| pht('Declining to apply storage adjustments.')); | pht('Declining to apply storage adjustments.')); | ||||
| return 0; | |||||
| } else { | } else { | ||||
| return $this->adjustSchemata(false); | $err = $this->adjustSchemata($api, false); | ||||
| if ($err) { | |||||
| return $err; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| return 0; | |||||
| } | |||||
| } | } | ||||