Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorDatabaseSetupCheck.php
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | private function executeRefChecks(PhabricatorDatabaseRef $ref) { | ||||
$engines = ipull($engines, 'Support', 'Engine'); | $engines = ipull($engines, 'Support', 'Engine'); | ||||
$innodb = idx($engines, 'InnoDB'); | $innodb = idx($engines, 'InnoDB'); | ||||
if ($innodb != 'YES' && $innodb != 'DEFAULT') { | if ($innodb != 'YES' && $innodb != 'DEFAULT') { | ||||
$message = pht( | $message = pht( | ||||
'The "InnoDB" engine is not available in MySQL (on host "%s"). '. | 'The "InnoDB" engine is not available in MySQL (on host "%s"). '. | ||||
'Enable InnoDB in your MySQL configuration.'. | 'Enable InnoDB in your MySQL configuration.'. | ||||
"\n\n". | "\n\n". | ||||
'(If you aleady created tables, MySQL incorrectly used some other '. | '(If you already created tables, MySQL incorrectly used some other '. | ||||
'engine to create them. You need to convert them or drop and '. | 'engine to create them. You need to convert them or drop and '. | ||||
'reinitialize them.)', | 'reinitialize them.)', | ||||
$ref_key); | $ref_key); | ||||
$this->newIssue('mysql.innodb') | $this->newIssue('mysql.innodb') | ||||
->setName(pht('MySQL InnoDB Engine Not Available')) | ->setName(pht('MySQL InnoDB Engine Not Available')) | ||||
->setMessage($message) | ->setMessage($message) | ||||
->setIsFatal(true); | ->setIsFatal(true); | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0