From: Brion Vibber Date: Thu, 14 Oct 2010 00:35:18 +0000 (-0700) Subject: fix bug with --diff on missing table X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d84923470fd06cfde60e887c7e2f649e015dd6bb;p=quix0rs-gnu-social.git fix bug with --diff on missing table --- diff --git a/scripts/dumpschema.php b/scripts/dumpschema.php index cab02d910e..b8d034d2a6 100644 --- a/scripts/dumpschema.php +++ b/scripts/dumpschema.php @@ -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;