summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
authorAdrian Voicu <avenir.ro@gmail.com>2015-07-10 13:41:25 +0200
committerAndrey Andreev <narf@devilix.net>2015-07-15 14:44:31 +0200
commit7cc6cea2d421862726081a39e932dbceeefcc775 (patch)
tree175c0853200e81f5225531dacb6eb19f0f9c1a62 /system/database/DB_forge.php
parent15a3e65c5c127ce2757396ef25a437632cca6484 (diff)
allow add of keys with array
This will allow adding multiple keys using array (http://www.codeigniter.com/user_guide/database/forge.html#adding-keys). Only if user wants, he can use the table columns to set a primary key by setting second parameter as TRUE.
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r--system/database/DB_forge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index d99fd0024..865498fb5 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -239,7 +239,7 @@ abstract class CI_DB_forge {
*/
public function add_key($key, $primary = FALSE)
{
- if ($primary === TRUE && is_array($key))
+ if (is_array($key))
{
foreach ($key as $one)
{