mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-31 14:38:15 +02:00
Properly detect InnoDB setups which are "NO" or "DISABLED"
Summary: See D2160, http://dev.mysql.com/doc/refman/5.5/en/show-engines.html Test Plan: Ran setup. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D2219
This commit is contained in:
parent
88cba92477
commit
9a29107d01
1 changed files with 4 additions and 2 deletions
|
@ -499,8 +499,10 @@ final class PhabricatorSetup {
|
||||||
}
|
}
|
||||||
|
|
||||||
$engines = queryfx_all($conn_raw, 'SHOW ENGINES');
|
$engines = queryfx_all($conn_raw, 'SHOW ENGINES');
|
||||||
$engines = ipull($engines, 'Engine', 'Engine');
|
$engines = ipull($engines, 'Support', 'Engine');
|
||||||
if (empty($engines['InnoDB'])) {
|
|
||||||
|
$innodb = idx($engines, 'InnoDB');
|
||||||
|
if ($innodb != 'YES' && $innodb != 'DEFAULT') {
|
||||||
self::writeFailure();
|
self::writeFailure();
|
||||||
self::write(
|
self::write(
|
||||||
"Setup failure! The 'InnoDB' engine is not available. Enable ".
|
"Setup failure! The 'InnoDB' engine is not available. Enable ".
|
||||||
|
|
Loading…
Add table
Reference in a new issue