From 00022023279fce5b05122986efbd592f72989850 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 7 Oct 2016 17:12:02 +0800 Subject: [PATCH] UpdateDatabase/MysqlLinks.php --- UpdateDatabase/MysqlLinks.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.2