Skip to content

Commit

Permalink
Fixed multiple column non-primary keys in DB_forge.
Browse files Browse the repository at this point in the history
  • Loading branch information
harryxu committed Jan 18, 2012
1 parent e596ea5 commit bbf017a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions system/database/DB_forge.php
Expand Up @@ -97,16 +97,6 @@ function drop_database($db_name)
*/
function add_key($key = '', $primary = FALSE)
{
if (is_array($key))
{
foreach ($key as $one)
{
$this->add_key($one, $primary);
}

return;
}

if ($key == '')
{
show_error('Key information is required for that operation.');
Expand Down Expand Up @@ -379,4 +369,4 @@ function _reset()
}

/* End of file DB_forge.php */
/* Location: ./system/database/DB_forge.php */
/* Location: ./system/database/DB_forge.php */

0 comments on commit bbf017a

Please sign in to comment.