From 61eb0d15510953762c2ded3ee2352007126915c1 Mon Sep 17 00:00:00 2001 From: Bernat Date: Thu, 7 Jun 2018 07:19:27 +0200 Subject: [PATCH] update structure DB --- services/db/install/changes/1.0.6/itemLastEntries.sql | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/services/db/install/changes/1.0.6/itemLastEntries.sql b/services/db/install/changes/1.0.6/itemLastEntries.sql index d3a1174c9..1bf18bce8 100644 --- a/services/db/install/changes/1.0.6/itemLastEntries.sql +++ b/services/db/install/changes/1.0.6/itemLastEntries.sql @@ -1,3 +1,8 @@ +USE `vn`; +DROP procedure IF EXISTS `itemLastEntries`; + +DELIMITER $$ +USE `vn`$$ CREATE DEFINER=`root`@`%` PROCEDURE `itemLastEntries`(vItem INT, vDays DATE) BEGIN SELECT @@ -28,4 +33,8 @@ FROM itemType it LEFT JOIN edi.ekt ek ON b.ektFk = ek.id WHERE b.itemFk = vItem And tr.shipped BETWEEN vDays AND CURDATE() ORDER BY tr.landed DESC , b.id DESC; -END \ No newline at end of file + +END$$ + +DELIMITER ; +