diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-07-16 18:54:28 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-07-16 18:54:28 +0200 |
commit | 254217a8655a14716bb673a0abde81c0b80ccd90 (patch) | |
tree | 0ad25083052f695aed65594d0085c35f04303bb6 /system/database/DB_forge.php | |
parent | db726c67ef1235aecf8f996306489e2febb700ec (diff) | |
parent | 0acf65a39272ec5599c740cef1fd7ce6c690c998 (diff) |
Merge pull request #22 from zacwasielewski/master
Fixed missing table prefixes in Database Forge Class rename_table() method
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r-- | system/database/DB_forge.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index a71fca78f..0dd29c238 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -234,7 +234,7 @@ class CI_DB_forge { 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); } |