]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix bug with --diff on missing table
authorBrion Vibber <brion@pobox.com>
Thu, 14 Oct 2010 00:35:18 +0000 (17:35 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 14 Oct 2010 00:35:18 +0000 (17:35 -0700)
scripts/dumpschema.php

index cab02d910e6575097d16b49aba0107097c216f7b..b8d034d2a67412fd438b9f8d4e4416d430eff2c4 100644 (file)
@@ -154,7 +154,7 @@ function dumpDiff($tableName, $filter)
         $old = $schema->getTableDef($tableName);
     } catch (Exception $e) {
         // @fixme this is a terrible check :D
-        if (preg_match('/no such table/', $e->getMessage())) {
+        if (preg_match('/no such table/i', $e->getMessage())) {
             return dumpTable($tableName, false);
         } else {
             throw $e;