Differential D14463 Diff 35378 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAdjustWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAdjustWorkflow.php
| Show All 18 Lines | $this | ||||
| 'Permit adjustments which truncate data. This option may '. | 'Permit adjustments which truncate data. This option may '. | ||||
| 'destroy some data, but the lost data is usually not '. | 'destroy some data, but the lost data is usually not '. | ||||
| 'important (most commonly, the ends of very long object '. | 'important (most commonly, the ends of very long object '. | ||||
| 'titles).'), | 'titles).'), | ||||
| ), | ), | ||||
| )); | )); | ||||
| } | } | ||||
| public function execute(PhutilArgumentParser $args) { | public function didExecute(PhutilArgumentParser $args) { | ||||
| $force = $args->getArg('force'); | |||||
| $unsafe = $args->getArg('unsafe'); | $unsafe = $args->getArg('unsafe'); | ||||
| $dry_run = $args->getArg('dryrun'); | |||||
| $this->requireAllPatchesApplied(); | $this->requireAllPatchesApplied(); | ||||
| return $this->adjustSchemata($force, $unsafe, $dry_run); | return $this->adjustSchemata($unsafe); | ||||
| } | } | ||||
| private function requireAllPatchesApplied() { | private function requireAllPatchesApplied() { | ||||
| $api = $this->getAPI(); | $api = $this->getAPI(); | ||||
| $applied = $api->getAppliedPatches(); | $applied = $api->getAppliedPatches(); | ||||
| if ($applied === null) { | if ($applied === null) { | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| Show All 25 Lines | |||||