upgrade.php
changeset 272 e0ec986c0af3
parent 196 54b3e14bf19d
child 279 8acd77a6c19d
child 289 2b60c89dc27f
--- a/upgrade.php	Sun Nov 18 18:44:55 2007 -0500
+++ b/upgrade.php	Wed Nov 21 15:10:57 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;
+          }
         }
       }