add new procedure in the BD
This commit is contained in:
parent
ab60e78d1c
commit
0e077314a6
|
@ -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();
|
||||
|
|
|
@ -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 ;
|
Loading…
Reference in New Issue