summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2011-08-20 16:07:01 +0200
committerDerek Jones <derek.jones@ellislab.com>2011-08-20 16:07:01 +0200
commit43194ea1af658914a89ca49aed4dca4617b9c4ff (patch)
treed722bd706ec2a26aa5cb0ead0d1646c94b86e0dd
parentd9489e0ca676905c16c7a8c0f03011cc12b634f9 (diff)
parent52ffa49ce45ce37441b735808060b138e30497ec (diff)
Merge branch 'master' of ellislab.beanstalkapp.com:/codeigniter
-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);
}