Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14865546
D10833.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10833.diff
View Options
diff --git a/src/applications/config/management/PhabricatorConfigManagementMigrateWorkflow.php b/src/applications/config/management/PhabricatorConfigManagementMigrateWorkflow.php
--- a/src/applications/config/management/PhabricatorConfigManagementMigrateWorkflow.php
+++ b/src/applications/config/management/PhabricatorConfigManagementMigrateWorkflow.php
@@ -55,13 +55,14 @@
'Skipping option "%s"; already in database config.', $key)."\n");
continue;
} else {
- PhabricatorConfigEditor::deleteConfig(
+ PhabricatorConfigEditor::storeNewValue(
$this->getViewer(),
- $option,
+ id(new PhabricatorConfigEntry())
+ ->loadOneWhere('namespace = %s AND key = %s', 'default', $key),
PhabricatorContentSource::newConsoleSource());
$key_count++;
$console->writeOut(pht(
- 'Migrated option "%s" from file to local config.', $key)."\n");
+ 'Migrated option "%s" from file to database config.', $key)."\n");
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 12:03 AM (5 h, 51 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7102158
Default Alt Text
D10833.diff (1 KB)
Attached To
Mode
D10833: Config migration script bug fix
Attached
Detach File
Event Timeline
Log In to Comment