update structure db
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Bernat 2019-03-12 13:48:25 +01:00
parent 55fd1c233e
commit b8ea54dfc4
2 changed files with 21 additions and 4 deletions

View File

@ -1,4 +0,0 @@
USE `vn`;
ALTER TABLE vn.itemLog MODIFY COLUMN userFk int(10) unsigned NULL;
ALTER TABLE vn.itemLog MODIFY COLUMN id int(11) NOT NULL AUTO_INCREMENT;

View File

@ -0,0 +1,21 @@
DROP procedure IF EXISTS `hedera`.`basketGetTax`;
DELIMITER $$
CREATE DEFINER=`root`@`%` PROCEDURE `hedera`.`basketGetTax`()
READS SQL DATA
BEGIN
/**
* Returns the taxes for the current client basket.
*
* @treturn tmp.orderTax
*/
DROP TEMPORARY TABLE IF EXISTS tmp.order;
CREATE TEMPORARY TABLE tmp.order
ENGINE = MEMORY
SELECT myBasketGetId() orderFk;
CALL orderGetTax();
DROP TEMPORARY TABLE IF EXISTS tmp.order;
END$$
DELIMITER ;