Differential D15987 Diff 38486 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
Show All 13 Lines | $this | ||||
'name' => 'for-replica', | 'name' => 'for-replica', | ||||
'help' => pht( | 'help' => pht( | ||||
'Add __--master-data__ to the __mysqldump__ command, '. | 'Add __--master-data__ to the __mysqldump__ command, '. | ||||
'generating a CHANGE MASTER statement in the output.'), | 'generating a CHANGE MASTER statement in the output.'), | ||||
), | ), | ||||
)); | )); | ||||
} | } | ||||
protected function isReadOnlyWorkflow() { | |||||
return true; | |||||
} | |||||
public function didExecute(PhutilArgumentParser $args) { | public function didExecute(PhutilArgumentParser $args) { | ||||
$api = $this->getAPI(); | $api = $this->getAPI(); | ||||
$patches = $this->getPatches(); | $patches = $this->getPatches(); | ||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
$applied = $api->getAppliedPatches(); | $applied = $api->getAppliedPatches(); | ||||
if ($applied === null) { | if ($applied === null) { | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |