summaryrefslogtreecommitdiffstats
path: root/application/config/database.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-11-29 22:47:14 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-11-29 22:47:14 +0100
commitff30be1c782a853b8c58f520214ac5079f273c42 (patch)
tree89281eeda4aa2eede95d64cd0adf7bcbbcd91d79 /application/config/database.php
parent0bb866e6e1c55a536a3029eaaf1913e46512a51a (diff)
parent292a0f661baedaa0a2bd61795e564c4195f4b0b8 (diff)
Merge pull request #719 from fhjbalfoort/develop
DB_driver failover if a connection cannot be established to the main connection
Diffstat (limited to 'application/config/database.php')
-rw-r--r--application/config/database.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/config/database.php b/application/config/database.php
index 28b792f75..58eec4b30 100644
--- a/application/config/database.php
+++ b/application/config/database.php
@@ -62,6 +62,7 @@
| ['autoinit'] Whether or not to automatically initialize the database.
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
+| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
@@ -88,7 +89,7 @@ $db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
-
+$db['default']['failover'] = array();
/* End of file database.php */
/* Location: ./application/config/database.php */ \ No newline at end of file