summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-07-16 18:54:28 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-07-16 18:54:28 +0200
commit254217a8655a14716bb673a0abde81c0b80ccd90 (patch)
tree0ad25083052f695aed65594d0085c35f04303bb6 /system
parentdb726c67ef1235aecf8f996306489e2febb700ec (diff)
parent0acf65a39272ec5599c740cef1fd7ce6c690c998 (diff)
Merge pull request #22 from zacwasielewski/master
Fixed missing table prefixes in Database Forge Class rename_table() method
Diffstat (limited to 'system')
-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 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);
}