|
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`clean`()
|
|
BEGIN
|
|
DECLARE vDateShort DATETIME;
|
|
|
|
SET vDateShort = TIMESTAMPADD(MONTH, -1, util.VN_CURDATE());
|
|
|
|
DELETE FROM cache.departure_limit WHERE Fecha < vDateShort;
|
|
END$$
|
|
DELIMITER ;
|