Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14417487
D20167.id48164.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
D20167.id48164.diff
View Options
diff --git a/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php b/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
--- a/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
+++ b/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
@@ -6,6 +6,7 @@
abstract class PhabricatorLiskDAO extends LiskDAO {
private static $namespaceStack = array();
+ private $forcedNamespace;
const ATTACHABLE = '<attachable>';
const CONFIG_APPLICATION_SERIALIZERS = 'phabricator/serializers';
@@ -47,6 +48,11 @@
return $namespace;
}
+ public function setForcedStorageNamespace($namespace) {
+ $this->forcedNamespace = $namespace;
+ return $this;
+ }
+
/**
* @task config
*/
@@ -188,7 +194,13 @@
abstract public function getApplicationName();
protected function getDatabaseName() {
- return self::getStorageNamespace().'_'.$this->getApplicationName();
+ if ($this->forcedNamespace) {
+ $namespace = $this->forcedNamespace;
+ } else {
+ $namespace = self::getStorageNamespace();
+ }
+
+ return $namespace.'_'.$this->getApplicationName();
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 1:18 AM (11 h, 53 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6928108
Default Alt Text
D20167.id48164.diff (1 KB)
Attached To
Mode
D20167: Allow a DAO object storage namespace to be forced to a particular value
Attached
Detach File
Event Timeline
Log In to Comment