trigger comments

This commit is contained in:
following
2013-04-22 02:02:20 +02:00
parent c989c004f3
commit 7fbdc2e3ed

View File

@@ -1474,6 +1474,7 @@
sql("CREATE TRIGGER `gkItemWaypointAfterInsert` AFTER INSERT ON `gk_item_waypoint`
FOR EACH ROW
BEGIN
/* this triggers an update of okapi_syncbase, if OKAPI is installed */
UPDATE caches SET meta_last_modified=NOW() WHERE caches.wp_oc=NEW.wp;
END;");
@@ -1481,6 +1482,7 @@
sql("CREATE TRIGGER `gkItemWaypointAfterUpdate` AFTER UPDATE ON `gk_item_waypoint`
FOR EACH ROW
BEGIN
/* this triggers an update of okapi_syncbase, if OKAPI is installed */
UPDATE caches SET meta_last_modified=NOW() WHERE caches.wp_oc=OLD.wp;
UPDATE caches SET meta_last_modified=NOW() WHERE caches.wp_oc=NEW.wp;
END;");
@@ -1489,6 +1491,7 @@
sql("CREATE TRIGGER `gkItemWaypointAfterDelete` AFTER DELETE ON `gk_item_waypoint`
FOR EACH ROW
BEGIN
/* this triggers an update of okapi_syncbase, if OKAPI is installed */
UPDATE caches SET meta_last_modified=NOW() WHERE caches.wp_oc=OLD.wp;
END;");