update sql changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-02-18 12:26:16 +01:00
parent 062a3146a3
commit a152e22f6e
1 changed files with 0 additions and 20 deletions

View File

@ -1,22 +1,2 @@
DROP VIEW `vn`.`invoiceInIntrastat__`;
RENAME TABLE `vn`.`invoiceInIntrastat` TO `vn`.`invoiceInIntrastat__`;
CREATE OR REPLACE
ALGORITHM = UNDEFINED
DEFINER=`root`@`localhost`
VIEW `vn`.`invoiceInIntrastat` AS
SELECT
`id`.`id` AS `id`,
`id`.`recibida_id` AS `invoiceInFk`,
`id`.`neto` AS `net`,
`id`.`intrastat_id` AS `intrastatFk`,
`id`.`importe` AS `amount`,
`id`.`unidades` AS `stems`,
`id`.`Paises_Id` AS `countryFk`,
`id`.`odbc_date` AS `dated`,
`id`.`valorestadistico` AS `statisticalValue`
FROM
`vn2008`.`intrastat_data` `id`;
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('InvoiceInIntrastat','*','*','ALLOW','ROLE','employee');