forked from GNUsocial/gnu-social
fix bug with --diff on missing table
This commit is contained in:
parent
a421dd934a
commit
d84923470f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user