update structure db
gitea/salix/1930-turn_view_in_tables This commit looks good
Details
gitea/salix/1930-turn_view_in_tables This commit looks good
Details
This commit is contained in:
parent
695941f8ca
commit
c1db827889
|
@ -26090,6 +26090,44 @@ CREATE TABLE `pgcEqu` (
|
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Recoge las cuentas contables con recargo de equivalencia e identifica a la que corresponde al iva y la que corresponde al recargo';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `plantpassport`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `plantpassport`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `plantpassport` (
|
||||
`producerFk` mediumint(3) unsigned NOT NULL,
|
||||
`plantpassportAuthorityFk` mediumint(3) unsigned NOT NULL,
|
||||
`number` varchar(25) CHARACTER SET utf8 DEFAULT NULL,
|
||||
`isRequested` tinyint(2) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`producerFk`,`plantpassportAuthorityFk`),
|
||||
KEY `plantpassport_authority_idx` (`plantpassportAuthorityFk`),
|
||||
KEY `producer_id_idx` (`producerFk`),
|
||||
CONSTRAINT `plantpassport_authority` FOREIGN KEY (`plantpassportAuthorityFk`) REFERENCES `plantpassportAuthority` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT `producer` FOREIGN KEY (`producerFk`) REFERENCES `producer` (`id`) ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='tiene la asignacion de cada productor con la autoridad certificadora';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `plantpassportAuthority`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `plantpassportAuthority`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `plantpassportAuthority` (
|
||||
`id` mediumint(3) unsigned NOT NULL,
|
||||
`denomination` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`countryFk` mediumint(8) unsigned DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `denomination_UNIQUE` (`denomination`),
|
||||
KEY `Pais_id_idx` (`countryFk`),
|
||||
CONSTRAINT `Pais_id` FOREIGN KEY (`countryFk`) REFERENCES `country` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='entidades certificadoras';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `postCode`
|
||||
--
|
||||
|
@ -26737,7 +26775,9 @@ CREATE TABLE `referenceCurrent` (
|
|||
`dated` date NOT NULL,
|
||||
`value` decimal(10,4) NOT NULL,
|
||||
`currencyFk` tinyint(3) unsigned NOT NULL,
|
||||
PRIMARY KEY (`dated`,`currencyFk`)
|
||||
PRIMARY KEY (`dated`,`currencyFk`),
|
||||
KEY `referenceCurrent_currencyFk _idx` (`currencyFk`),
|
||||
CONSTRAINT `referenceCurrent_currencyFk ` FOREIGN KEY (`currencyFk`) REFERENCES `currency` (`id`) ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -47146,10 +47186,9 @@ BEGIN
|
|||
SELECT id itemFk FROM vn.item
|
||||
WHERE typeFk = vTypeFk;
|
||||
|
||||
CALL ticketCalculate(vLanded, vAddressFk, vAgencyModeFk);
|
||||
CALL catalog_calculate(vLanded, vAddressFk, vAgencyModeFk);
|
||||
DROP TEMPORARY TABLE tmp.item;
|
||||
DROP TEMPORARY TABLE tmp.ticketLot;
|
||||
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
|
@ -56342,4 +56381,4 @@ USE `vncontrol`;
|
|||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2019-12-16 9:19:16
|
||||
-- Dump completed on 2019-12-16 10:31:31
|
||||
|
|
|
@ -62,8 +62,8 @@ IGNORETABLES=(
|
|||
--ignore-table=vn.payment
|
||||
--ignore-table=vn.paymentExchangeInsurance
|
||||
--ignore-table=vn.payrollCenter
|
||||
--ignore-table=vn.plantpassport
|
||||
--ignore-table=vn.plantpassportAuthority
|
||||
--ignore-table=vn.plantpassport__
|
||||
--ignore-table=vn.plantpassportAuthority__
|
||||
--ignore-table=vn.preparationException
|
||||
--ignore-table=vn.priceFixed__
|
||||
--ignore-table=vn.printer
|
||||
|
|
Loading…
Reference in New Issue