fix bug with --diff on missing table

This commit is contained in:
Brion Vibber 2010-10-13 17:35:18 -07:00
parent a421dd934a
commit d84923470f

View File

@ -154,7 +154,7 @@ function dumpDiff($tableName, $filter)
$old = $schema->getTableDef($tableName); $old = $schema->getTableDef($tableName);
} catch (Exception $e) { } catch (Exception $e) {
// @fixme this is a terrible check :D // @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); return dumpTable($tableName, false);
} else { } else {
throw $e; throw $e;