Fix Forge add_column() and modify_column()
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index d8ecefe..c284d7d 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -564,7 +564,7 @@
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 @@
for ($i = 0, $c = count($sqls); $i < $c; $i++)
{
- if ($this->db->query($sql) === FALSE)
+ if ($this->db->query($sqls[$i]) === FALSE)
{
return FALSE;
}