UpdateDatabase/MysqlLinks.php
authorAlan Knowles <alan@roojs.com>
Fri, 7 Oct 2016 09:12:02 +0000 (17:12 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Oct 2016 09:12:02 +0000 (17:12 +0800)
UpdateDatabase/MysqlLinks.php

index 72506e2..b19a913 100644 (file)
@@ -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;
                 }