From 8e6b44cbc214d6aa7950255f79ded27bc8ed24e3 Mon Sep 17 00:00:00 2001 From: Bernat Date: Tue, 10 Apr 2018 13:47:17 +0200 Subject: [PATCH] new procedure for ticket Volumes --- services/db/changes/1.0.3/03-ticketListVolume.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 services/db/changes/1.0.3/03-ticketListVolume.sql diff --git a/services/db/changes/1.0.3/03-ticketListVolume.sql b/services/db/changes/1.0.3/03-ticketListVolume.sql new file mode 100644 index 000000000..e2bb7c4f8 --- /dev/null +++ b/services/db/changes/1.0.3/03-ticketListVolume.sql @@ -0,0 +1,15 @@ +USE `vn`; +DROP procedure IF EXISTS `ticketListVolume`; + +DELIMITER $$ +USE `vn`$$ +CREATE DEFINER=`root`@`%` PROCEDURE `ticketListVolume`(IN vTicketId INT) +BEGIN + + CALL vn.ticketVolume(vTicketId); + + SELECT * FROM vn.ticketVolume; +END$$ + +DELIMITER ; +