cau 10144 upadte structure db
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
5f5ce1a765
commit
2c600a5af4
|
@ -1,10 +1,7 @@
|
|||
USE `hedera`;
|
||||
DROP procedure IF EXISTS `orderGetTotal`;
|
||||
|
||||
DROP procedure IF EXISTS `hedera`.`orderGetTotal`;
|
||||
DELIMITER $$
|
||||
USE `hedera`$$
|
||||
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `orderGetTotal`()
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `hedera`.`orderGetTotal`()
|
||||
BEGIN
|
||||
/**
|
||||
* Calcula el total con IVA para un conjunto de orders.
|
||||
|
|
|
@ -5,12 +5,12 @@ DELIMITER $$
|
|||
USE `vn`$$
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `ticketGetProblems`()
|
||||
BEGIN
|
||||
/*
|
||||
* Obtiene los problemas de uno o varios tickets
|
||||
*
|
||||
* @table tmp.ticketGetProblems(ticketFk, clientFk, warehouseFk, shipped)
|
||||
* @return tmp.ticketProblems
|
||||
*/
|
||||
/**
|
||||
* Obtiene los problemas de uno o varios tickets
|
||||
*
|
||||
* @table tmp.ticketGetProblems(ticketFk, clientFk, warehouseFk, shipped)
|
||||
* @return tmp.ticketProblems
|
||||
*/
|
||||
DECLARE vWarehouse INT;
|
||||
DECLARE vDate DATE;
|
||||
DECLARE vAvailableCache INT;
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
ALTER TABLE `vn`.`itemLog`
|
||||
CHANGE COLUMN `id` `id` INT(11) NOT NULL AUTO_INCREMENT ,
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
DROP FOREIGN KEY `itemLogUserFk`;
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
CHANGE COLUMN `id` `id` INT(11) NOT NULL AUTO_INCREMENT ,
|
||||
CHANGE COLUMN `userFk` `userFk` INT(10) UNSIGNED NULL DEFAULT NULL ;
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
ADD CONSTRAINT `itemLogUserFk`
|
||||
FOREIGN KEY (`userFk`)
|
||||
REFERENCES `account`.`user` (`id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE;
|
|
@ -1,3 +1,3 @@
|
|||
/* Añadir a producción cuando se suba salix */
|
||||
|
||||
DROP TRIGGER vn2008.ClientesAfterInsert;
|
||||
DROP TRIGGER IF EXISTS vn2008.ClientesAfterInsert;
|
||||
|
|
Loading…
Reference in New Issue