summaryrefslogtreecommitdiff
path: root/sites
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-07 15:07:59 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-07 15:07:59 +0000
commitdde5c67ba041dc65588377808b1943fdd3b57bf6 (patch)
tree133c901b2517a88d36060da686dd95903e84d079 /sites
parent626e64025eb85faf819b9d17298df505e9d0526a (diff)
downloadbrdo-dde5c67ba041dc65588377808b1943fdd3b57bf6.tar.gz
brdo-dde5c67ba041dc65588377808b1943fdd3b57bf6.tar.bz2
- Patch #302327 by Josh Waihi, noahb, Crell, hswong3i: support cross-schema/database prefixing like we claim to.
Diffstat (limited to 'sites')
-rw-r--r--sites/default/default.settings.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index 6a3a4a77d..b219e67a8 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -131,6 +131,22 @@
* 'authmap' => 'shared_',
* );
*
+ * You can also use db_prefix as a reference to a schema/database. This maybe
+ * useful if your Drupal installation exists in a schema that is not the default
+ * or you want to access several databases from the same code base at the same
+ * time.
+ * Example:
+ *
+ * $db_prefix = array(
+ * 'default' => 'main.',
+ * 'users' => 'shared.',
+ * 'sessions' => 'shared.',
+ * 'role' => 'shared.',
+ * 'authmap' => 'shared.',
+ * );
+ *
+ * NOTE: MySQL and SQLite's definition of a schema is a database.
+ *
* Database configuration format:
* $databases['default']['default'] = array(
* 'driver' => 'mysql',