projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af547bd
)
UpdateDatabase/MysqlLinks.php
author
Alan Knowles
<alan@roojs.com>
Fri, 7 Oct 2016 09:15:59 +0000
(17:15 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 7 Oct 2016 09:15:59 +0000
(17:15 +0800)
UpdateDatabase/MysqlLinks.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase/MysqlLinks.php
b/UpdateDatabase/MysqlLinks.php
index
bb34c88
..
f004455
100644
(file)
--- a/
UpdateDatabase/MysqlLinks.php
+++ b/
UpdateDatabase/MysqlLinks.php
@@
-356,11
+356,11
@@
class Pman_Core_UpdateDatabase_MysqlLinks {
";
$has_checks= false;
";
$has_checks= false;
- $err = array();
+ $err
s
= array();
foreach($map as $source_col=>$target) {
// check that source_col exists in schema.
if (!isset($this->schema[$tbl][$source_col])) {
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";
+ $err
s
[] = "SOURCE MISSING: $source_col => $target";
continue;
}
continue;
}
@@
-370,7
+370,7
@@
class Pman_Core_UpdateDatabase_MysqlLinks {
if (!isset($this->schema[$target_table])) {
// skip... target table does not exist
if (!isset($this->schema[$target_table])) {
// skip... target table does not exist
- $err[] = "TARGET MISSING: $source_col => $target";
+ $err
s
[] = "TARGET MISSING: $source_col => $target";
continue;
}
continue;
}
@@
-401,8
+401,8
@@
class Pman_Core_UpdateDatabase_MysqlLinks {
";
if (!$has_checks) {
";
if (!$has_checks) {
- echo "SKIP TRIGGER {$tbl}_before_update (missing " . implode(", ", $err) . ")\n";
-
return
;
+ echo "SKIP TRIGGER {$tbl}_before_update (missing " . implode(", ", $err
s
) . ")\n";
+
continue
;
}
//echo $trigger; exit;
}
//echo $trigger; exit;