From 7b25a26a7300f2cba43f86c6c67b8456f3c0fcd6 Mon Sep 17 00:00:00 2001 From: Bernat Date: Wed, 6 Feb 2019 09:51:46 +0100 Subject: [PATCH] #9762 update structure db --- .../changes/1.2-CHECK/25-expedition.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 services/db/install/changes/1.2-CHECK/25-expedition.sql diff --git a/services/db/install/changes/1.2-CHECK/25-expedition.sql b/services/db/install/changes/1.2-CHECK/25-expedition.sql new file mode 100644 index 000000000..75018bf9f --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/25-expedition.sql @@ -0,0 +1,23 @@ +ALTER TABLE `vn2008`.`expeditions` +ADD COLUMN `externalId` BIGINT(25) NULL DEFAULT NULL AFTER `workerFk`; + + +USE `vn`; +CREATE + OR REPLACE ALGORITHM = UNDEFINED + DEFINER = `root`@`%` + SQL SECURITY DEFINER +VIEW `vn`.`expedition` AS + SELECT + `e`.`expeditions_id` AS `id`, + `e`.`agency_id` AS `agencyModeFk`, + `e`.`ticket_id` AS `ticketFk`, + `e`.`EsBulto` AS `isBox`, + `e`.`odbc_date` AS `created`, + `e`.`Id_Article` AS `itemFk`, + `e`.`counter` AS `counter`, + `e`.`checked` AS `checked`, + `e`.`workerFk` AS `workerFk`, + `e`.`externalId` AS `externalId` + FROM + `vn2008`.`expeditions` `e`;