update sql changes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
062a3146a3
commit
a152e22f6e
|
@ -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)
|
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||||
VALUES ('InvoiceInIntrastat','*','*','ALLOW','ROLE','employee');
|
VALUES ('InvoiceInIntrastat','*','*','ALLOW','ROLE','employee');
|
Loading…
Reference in New Issue