Skip to content

Commit

Permalink
Merge pull request #22 from zacwasielewski/master
Browse files Browse the repository at this point in the history
Fixed missing table prefixes in Database Forge Class rename_table() method
  • Loading branch information
Phil Sturgeon committed Jul 16, 2011
2 parents db726c6 + 0acf65a commit 254217a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/DB_forge.php
Expand Up @@ -234,7 +234,7 @@ function rename_table($table_name, $new_table_name)
show_error('A table name is required for that operation.');
}

$sql = $this->_rename_table($table_name, $new_table_name);
$sql = $this->_rename_table($this->db->dbprefix.$table_name, $this->db->dbprefix.$new_table_name);
return $this->db->query($sql);
}

Expand Down

0 comments on commit 254217a

Please sign in to comment.