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
1 changed files with 1 additions and 1 deletions

View 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;