projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bdeedb
)
UpdateDatabase/MysqlLinks.php
author
Alan Knowles
<alan@roojs.com>
Thu, 16 Apr 2015 06:22:05 +0000
(14:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 16 Apr 2015 06:22:05 +0000
(14:22 +0800)
UpdateDatabase/MysqlLinks.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase/MysqlLinks.php
b/UpdateDatabase/MysqlLinks.php
index
9ebbf98
..
748bd34
100644
(file)
--- a/
UpdateDatabase/MysqlLinks.php
+++ b/
UpdateDatabase/MysqlLinks.php
@@
-169,7
+169,7
@@
class Pman_Core_UpdateDatabase_MysqlLinks {
if (!isset($this->schema[$target_table])) {
echo "Skip $target_table = table does not exist in schema\n";
- continue;
;
+ continue;
}
@@
-196,10
+196,8
@@
class Pman_Core_UpdateDatabase_MysqlLinks {
$trigger .="
SET mid = 0;
SELECT count(*) into mid FROM {$source_table} WHERE {$source_col} = OLD.{$target_col} LIMIT 1;
- IF mid > 0 THEN
-
+ IF mid > 0 THEN
UPDATE `$err` SET x = 1;
-
END IF;
";
}