add new procedure in the BD

This commit is contained in:
Bernat 2018-05-23 08:54:37 +02:00
parent ab60e78d1c
commit 0e077314a6
2 changed files with 18 additions and 0 deletions

View File

@ -21,6 +21,7 @@ const fs = require('fs-extra');
for (let dir of dirs) {
if (compareVersions(dir, version) <= 0) continue;
if (/^\./.test(dir)) continue;
let path = `${changesDir}/${dir}`;
let files = await fs.readdir(path);
files.sort();

View File

@ -0,0 +1,17 @@
USE `vn`;
DROP procedure IF EXISTS `agencyHourListOffer`;
DELIMITER $$
USE `vn`$$
CREATE DEFINER=`root`@`%` PROCEDURE `agencyHourListOffer`(vDate DATE, vAddressFk INT, vAgencyFk INT)
BEGIN
CALL vn.agencyHourOffer(vDate, vAddressFk, vAgencyFk);
SELECT * FROM tmp.agencyHourOffer;
DROP TEMPORARY TABLE tmp.agencyHourOffer;
END$$
DELIMITER ;