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

This commit is contained in:
Vicent Llopis 2022-03-18 12:41:15 +01:00
parent 894f95cb1f
commit f501d20c65
1 changed files with 22 additions and 1 deletions

View File

@ -24,4 +24,25 @@ SELECT
`sat`.`minimumM3` AS `minimumM3`, `sat`.`minimumM3` AS `minimumM3`,
`sat`.`m3Price` AS `m3Price` `sat`.`m3Price` AS `m3Price`
FROM FROM
`vn`.`supplierAgencyTerm` `sat` `vn`.`supplierAgencyTerm` `sat`;
ALTER TABLE vn.agency DROP FOREIGN KEY agency_ibfk_4;
ALTER TABLE vn.agency CHANGE supplierFk supplierFk__ int(11) DEFAULT NULL NULL;
CREATE OR REPLACE
ALGORITHM = UNDEFINED
DEFINER=`root`@`localhost`
VIEW `vn2008`.`agency` AS
SELECT
`a`.`id` AS `agency_id`,
`a`.`name` AS `name`,
`a`.`warehouseFk` AS `warehouse_id`,
`a`.`isVolumetric` AS `por_volumen`,
`a`.`bankFk` AS `Id_Banco`,
`a`.`warehouseAliasFk` AS `warehouse_alias_id`,
`a`.`isOwn` AS `propios`,
`a`.`labelZone` AS `zone_label`,
`a`.`workCenterFk` AS `workCenterFk`,
`a`.`supplierFk__` AS `supplierFk__`
FROM
`vn`.`agency` `a`;