fixed log_last_modified trigger and getlogs sql

This commit is contained in:
following
2013-04-30 15:57:39 +02:00
parent 40488ad754
commit 13c5df34e0
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -915,6 +915,9 @@
IF NEW.`picture`!=OLD.`picture` THEN
SET NEW.`log_last_modified`=NOW();
END IF;
IF NEW.`last_modified` > NEW.`log_last_modified` THEN
SET NEW.`log_last_modified`=NEW.`last_modified`;
END IF;
END IF;
END;");