Browse files

Fix Forge add_column() and modify_column()

  • Loading branch information...
1 parent a287a34 commit 137a742409b2a643e70f422efa17ca535b47d218 @narfbg narfbg committed Nov 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 system/database/DB_forge.php
View
4 system/database/DB_forge.php
@@ -564,7 +564,7 @@ public function add_column($table = '', $field = array())
for ($i = 0, $c = count($sqls); $i < $c; $i++)
{
- if ($this->db->query($sql) === FALSE)
+ if ($this->db->query($sqls[$i]) === FALSE)
{
return FALSE;
}
@@ -644,7 +644,7 @@ public function modify_column($table = '', $field = array())
for ($i = 0, $c = count($sqls); $i < $c; $i++)
{
- if ($this->db->query($sql) === FALSE)
+ if ($this->db->query($sqls[$i]) === FALSE)
{
return FALSE;
}

0 comments on commit 137a742

Please sign in to comment.