Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed missing table prefixes in Database Forge Class rename_table() m…

…ethod
  • Loading branch information...
commit 0acf65a39272ec5599c740cef1fd7ce6c690c998 1 parent db726c6
@zacwasielewski zacwasielewski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/database/DB_forge.php
View
2  system/database/DB_forge.php
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.