Release 1.16. Look in CHANGELOG.txt for changes.
[fa-stable.git] / admin / db / maintenance_db.inc
index fdbd51bfc835aa4bad44400e63d47fb302d8db74..0a710e34a409e032db4153bbaab5dc78fb12fba9 100644 (file)
@@ -149,6 +149,10 @@ function db_import($filename, $connection)
                                $table = true;
                                $table_queries[] = $line . "\n";
                        }
+                       elseif (strtolower(substr($line, 0, 11)) == "alter table")
+                       {
+                               $data_queries[] = substr($line, 0, strlen($line) - 1);
+                       }
 
                // the current line belongs to a create sql query
                }
@@ -202,6 +206,7 @@ function db_import($filename, $connection)
                        {
                                //if ($CONF['import_error']) echo $data_query."\n<div class=\"bold_left\">".mysql_error()."</div><br>\n";
                                $sql_error = true;
+                               return false;
                        }
                }
        }