Page MenuHomePhabricator

D15982.diff
No OneTemporary

D15982.diff

diff --git a/src/applications/config/controller/PhabricatorConfigDatabaseController.php b/src/applications/config/controller/PhabricatorConfigDatabaseController.php
--- a/src/applications/config/controller/PhabricatorConfigDatabaseController.php
+++ b/src/applications/config/controller/PhabricatorConfigDatabaseController.php
@@ -4,16 +4,14 @@
extends PhabricatorConfigController {
protected function buildSchemaQuery() {
- $conf = PhabricatorEnv::newObjectFromConfig(
- 'mysql.configuration-provider',
- array($dao = null, 'w'));
+ $ref = PhabricatorDatabaseRef::getMasterDatabaseRef();
$api = id(new PhabricatorStorageManagementAPI())
- ->setUser($conf->getUser())
- ->setHost($conf->getHost())
- ->setPort($conf->getPort())
+ ->setUser($ref->getUser())
+ ->setHost($ref->getHost())
+ ->setPort($ref->getPort())
->setNamespace(PhabricatorLiskDAO::getDefaultStorageNamespace())
- ->setPassword($conf->getPassword());
+ ->setPassword($ref->getPass());
$query = id(new PhabricatorConfigSchemaQuery())
->setAPI($api);

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 8:25 AM (17 h, 41 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6917939
Default Alt Text
D15982.diff (1 KB)

Event Timeline