upgrade.php
changeset 220 2d4bb97fa75a
parent 218 e0ec986c0af3
child 232 2b60c89dc27f
--- a/upgrade.php	Wed Nov 21 15:11:51 2007 -0500
+++ b/upgrade.php	Wed Nov 21 15:13:06 2007 -0500
@@ -734,11 +734,18 @@
       // OK, do the loop, baby!!!
       foreach($schema as $q)
       {
-        $r = $db->sql_query($q);
-        if(!$r)
+        if ( substr($q, 0, 1) == '@' )
         {
-          echo $db->get_error();
-          break 2;
+          // if the first character is @, don't fail on error
+          $db->sql_query(substr($q, 1));
+        }
+        else
+        {
+          if ( !$db->sql_query($q) )
+          {
+            echo $db->get_error();
+            break 2;
+          }
         }
       }