Changeset View
Changeset View
Standalone View
Standalone View
scripts/sql/manage_storage.php
| Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | $message = phutil_console_format( | ||||
| pht('Raw MySQL Error'), | pht('Raw MySQL Error'), | ||||
| $ex->getMessage()); | $ex->getMessage()); | ||||
| echo phutil_console_wrap($message); | echo phutil_console_wrap($message); | ||||
| exit(1); | exit(1); | ||||
| } | } | ||||
| $workflows = id(new PhutilSymbolLoader()) | $workflows = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('PhabricatorStorageManagementWorkflow') | ->setAncestorClass('PhabricatorStorageManagementWorkflow') | ||||
| ->loadObjects(); | ->execute(); | ||||
| $patches = PhabricatorSQLPatchList::buildAllPatches(); | $patches = PhabricatorSQLPatchList::buildAllPatches(); | ||||
| foreach ($workflows as $workflow) { | foreach ($workflows as $workflow) { | ||||
| $workflow->setAPI($api); | $workflow->setAPI($api); | ||||
| $workflow->setPatches($patches); | $workflow->setPatches($patches); | ||||
| } | } | ||||
| $workflows[] = new PhutilHelpArgumentWorkflow(); | $workflows[] = new PhutilHelpArgumentWorkflow(); | ||||
| $args->parseWorkflows($workflows); | $args->parseWorkflows($workflows); | ||||