upgrade.php
changeset 279 8acd77a6c19d
parent 228 b0a4d179be85
parent 272 e0ec986c0af3
child 304 e2cb5f1432c8
--- a/upgrade.php	Wed Nov 21 20:45:50 2007 -0500
+++ b/upgrade.php	Wed Nov 21 21:03:48 2007 -0500
@@ -736,11 +736,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;
+          }
         }
       }