Differential D10760 Diff 25853 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAdjustWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementAdjustWorkflow.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | private function adjustSchemata($force, $unsafe) { | ||||
$table->draw(); | $table->draw(); | ||||
if (!$force) { | if (!$force) { | ||||
$console->writeOut( | $console->writeOut( | ||||
"\n%s\n", | "\n%s\n", | ||||
pht( | pht( | ||||
"Found %s issues(s) with schemata, detailed above.\n\n". | "Found %s issues(s) with schemata, detailed above.\n\n". | ||||
"You can review issues in more detail from the web interface, ". | "You can review issues in more detail from the web interface, ". | ||||
"in Config > Database Status.\n\n". | "in Config > Database Status. To better understand the adjustment ". | ||||
"workflow, see \"Managing Storage Adjustments\" in the ". | |||||
"documentation.\n\n". | |||||
"MySQL needs to copy table data to make some adjustments, so these ". | "MySQL needs to copy table data to make some adjustments, so these ". | ||||
"migrations may take some time.". | "migrations may take some time.", | ||||
// TODO: Remove warning once this stabilizes. | |||||
"\n\n". | |||||
"WARNING: This workflow is new and unstable. If you continue, you ". | |||||
"may unrecoverably destory data. Make sure you have a backup before ". | |||||
"you proceed.", | |||||
new PhutilNumber(count($adjustments)))); | new PhutilNumber(count($adjustments)))); | ||||
$prompt = pht('Fix these schema issues?'); | $prompt = pht('Fix these schema issues?'); | ||||
if (!phutil_console_confirm($prompt, $default_no = true)) { | if (!phutil_console_confirm($prompt, $default_no = true)) { | ||||
return; | return; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 404 Lines • Show Last 20 Lines |