diff --git a/webdata/scripts/table-build.php b/webdata/scripts/table-build.php index c756de5..146a31e 100644 --- a/webdata/scripts/table-build.php +++ b/webdata/scripts/table-build.php @@ -11,7 +11,17 @@ $p = pathinfo($m); $o = new $p['filename']; if($o instanceof Pix_Table) { - $o->dropTable(); + try { + $o->dropTable(); + } catch (Pix_Table_Exception $e) { + echo 'Unable to drop table "'.$p['filename'].'". '."\n"; + if (preg_match('/^Table: \w+SQL Error: \(1051\)Unknown table/', + $e->getMessage())) { + echo 'Table missing. Ignore'."\n"; + } else { + die($e->getMessage()); + } + } $o->createTable(); } -} \ No newline at end of file +}