mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Remove hard-coded tests against 'phabricator' namespace in setup
Summary: See https://github.com/facebook/arcanist/issues/49 Test Plan: - Turned on setup mode with non-default namespace. - Verified that setup tests passed. Reviewers: btrahan, vrana Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3274
This commit is contained in:
parent
7bb3c39cde
commit
6f3d15bb82
1 changed files with 4 additions and 2 deletions
|
@ -512,9 +512,11 @@ final class PhabricatorSetup {
|
|||
self::write(" okay InnoDB is available.\n");
|
||||
}
|
||||
|
||||
$namespace = PhabricatorEnv::getEnvConfig('storage.default-namespace');
|
||||
|
||||
$databases = queryfx_all($conn_raw, 'SHOW DATABASES');
|
||||
$databases = ipull($databases, 'Database', 'Database');
|
||||
if (empty($databases['phabricator_meta_data'])) {
|
||||
if (empty($databases[$namespace.'_meta_data'])) {
|
||||
self::writeFailure();
|
||||
self::write(
|
||||
"Setup failure! You haven't run 'bin/storage upgrade'. See this ".
|
||||
|
@ -541,7 +543,7 @@ final class PhabricatorSetup {
|
|||
"\n".
|
||||
"Then optionally run:\n".
|
||||
"\n".
|
||||
" REPAIR TABLE phabricator_search.search_documentfield QUICK;\n".
|
||||
" REPAIR TABLE {$namespace}_search.search_documentfield QUICK;\n".
|
||||
"\n".
|
||||
"...to reindex existing documents.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue