summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
authorZac Wasielewski <zac@wasielewski.org>2011-07-16 04:23:18 +0200
committerZac Wasielewski <zac@wasielewski.org>2011-07-16 04:23:18 +0200
commit0acf65a39272ec5599c740cef1fd7ce6c690c998 (patch)
tree0ad25083052f695aed65594d0085c35f04303bb6 /system/database/DB_forge.php
parentdb726c67ef1235aecf8f996306489e2febb700ec (diff)
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.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);
}