Allow bin/config to affect database configuration and migrate between local and database configuration

Summary: Fixes T4018. Basically hits the bullet points in that task description except the "ideally" one.

Test Plan:
ran bin/config migrate and saw sensible output.

```
~> ./bin/config migrate
Migrating file-based config to more modern config...
Skipping config of source type PhabricatorConfigDatabaseSource...
Skipping config of source type PhabricatorConfigLocalSource...
Skipping config of source type PhabricatorConfigDefaultSource...
Done. Migrated 0 keys.
```

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: hach-que, epriestley, Korvin

Maniphest Tasks: T4018

Differential Revision: https://secure.phabricator.com/D10490
This commit is contained in:
Bob Trahan
2014-10-08 16:15:05 -07:00
parent f4604ae147
commit c0848bca6d
9 changed files with 251 additions and 42 deletions

View File

@@ -104,9 +104,10 @@ final class PhabricatorApplicationEditController
PhabricatorPolicyCapability::CAN_EDIT);
PhabricatorConfigEditor::storeNewValue(
$user,
$config_entry,
$value,
$this->getRequest());
PhabricatorContentSource::newFromRequest($this->getRequest()));
}
return id(new AphrontRedirectResponse())->setURI($view_uri);