X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=UpdateDatabase%2FMysqlLinks.php;fp=UpdateDatabase%2FMysqlLinks.php;h=b19a9135e20cbc0f1c35080361185498a9caf21c;hb=00022023279fce5b05122986efbd592f72989850;hp=72506e240595a5c9da2e8d7833b0e7abff473bb8;hpb=edab485cb7d871d1d85773b2af6d8e2f8c1e9c5b;p=Pman.Core diff --git a/UpdateDatabase/MysqlLinks.php b/UpdateDatabase/MysqlLinks.php index 72506e24..b19a9135 100644 --- a/UpdateDatabase/MysqlLinks.php +++ b/UpdateDatabase/MysqlLinks.php @@ -263,10 +263,11 @@ class Pman_Core_UpdateDatabase_MysqlLinks { "; $has_checks= false; - + $err = array(); foreach($map as $source_col=>$target) { // check that source_col exists in schema. if (!isset($this->schema[$tbl][$source_col])) { + $err[] = "SOURCE MISSING: $source_col => $target"; continue; } @@ -276,6 +277,7 @@ class Pman_Core_UpdateDatabase_MysqlLinks { if (!isset($this->schema[$target_table])) { // skip... target table does not exist + $err[] = "TARGET MISSING: $source_col => $target"; continue; }