From 50c1531083f450971fc814fd8fcb29b8b6d35050 Mon Sep 17 00:00:00 2001 From: Jbreso Date: Tue, 30 Jan 2024 10:31:29 +0100 Subject: [PATCH 1/2] feat: refs#Eliminar vistas vn2008 --- db/routines/vn2008/views/Equipos.sql | 8 -------- db/routines/vn2008/views/deliveryPoint.sql | 7 ------- db/routines/vn2008/views/device_user.sql | 6 ------ db/routines/vn2008/views/escritos.sql | 9 --------- 4 files changed, 30 deletions(-) delete mode 100644 db/routines/vn2008/views/Equipos.sql delete mode 100644 db/routines/vn2008/views/deliveryPoint.sql delete mode 100644 db/routines/vn2008/views/device_user.sql delete mode 100644 db/routines/vn2008/views/escritos.sql diff --git a/db/routines/vn2008/views/Equipos.sql b/db/routines/vn2008/views/Equipos.sql deleted file mode 100644 index fd1210237..000000000 --- a/db/routines/vn2008/views/Equipos.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`Equipos` -AS SELECT `h`.`code` AS `alias`, - `h`.`description` AS `descripcion`, - `h`.`workerFk` AS `trabajador_id`, - `h`.`windowsSerial` AS `windowsSerial` -FROM `vn`.`host` `h` diff --git a/db/routines/vn2008/views/deliveryPoint.sql b/db/routines/vn2008/views/deliveryPoint.sql deleted file mode 100644 index 7763bc9fa..000000000 --- a/db/routines/vn2008/views/deliveryPoint.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`deliveryPoint` -AS SELECT `dp`.`id` AS `id`, - `dp`.`name` AS `name`, - `dp`.`ubication` AS `ubication` -FROM `vn`.`deliveryPoint` `dp` diff --git a/db/routines/vn2008/views/device_user.sql b/db/routines/vn2008/views/device_user.sql deleted file mode 100644 index 52a2faafa..000000000 --- a/db/routines/vn2008/views/device_user.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`device_user` -AS SELECT `dpu`.`deviceProductionFk` AS `device_id`, - `dpu`.`userFk` AS `user_id` -FROM `vn`.`deviceProductionUser` `dpu` diff --git a/db/routines/vn2008/views/escritos.sql b/db/routines/vn2008/views/escritos.sql deleted file mode 100644 index b99bc13d7..000000000 --- a/db/routines/vn2008/views/escritos.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`escritos` -AS SELECT `s`.`id` AS `id`, - `s`.`code` AS `abrev`, - `s`.`description` AS `descripcion`, - `s`.`isVisible` AS `visible`, - `s`.`hasCompany` AS `hasCompany` -FROM `vn`.`sample` `s` From 518d057cf3cd4f7c5923da90eb907e8daf5d363a Mon Sep 17 00:00:00 2001 From: Jbreso Date: Fri, 2 Feb 2024 14:31:23 +0100 Subject: [PATCH 2/2] refs #6686 feat: Delete views vn2008 --- db/routines/vn2008/views/edi_feature.sql | 10 ---------- db/routines/vn2008/views/edi_genus.sql | 9 --------- db/routines/vn2008/views/edi_item_feature.sql | 11 ----------- db/routines/vn2008/views/edi_plant.sql | 10 ---------- db/routines/vn2008/views/edi_type.sql | 10 ---------- db/routines/vn2008/views/edi_value.sql | 10 ---------- 6 files changed, 60 deletions(-) delete mode 100644 db/routines/vn2008/views/edi_feature.sql delete mode 100644 db/routines/vn2008/views/edi_genus.sql delete mode 100644 db/routines/vn2008/views/edi_item_feature.sql delete mode 100644 db/routines/vn2008/views/edi_plant.sql delete mode 100644 db/routines/vn2008/views/edi_type.sql delete mode 100644 db/routines/vn2008/views/edi_value.sql diff --git a/db/routines/vn2008/views/edi_feature.sql b/db/routines/vn2008/views/edi_feature.sql deleted file mode 100644 index 7789eac06..000000000 --- a/db/routines/vn2008/views/edi_feature.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`edi_feature` -AS SELECT `edi`.`feature`.`item_id` AS `item_id`, - `edi`.`feature`.`feature_type_id` AS `feature_type_id`, - `edi`.`feature`.`feature_value` AS `feature_value`, - `edi`.`feature`.`entry_date` AS `entry_date`, - `edi`.`feature`.`expiry_date` AS `expiry_date`, - `edi`.`feature`.`change_date_time` AS `change_date_time` -FROM `edi`.`feature` diff --git a/db/routines/vn2008/views/edi_genus.sql b/db/routines/vn2008/views/edi_genus.sql deleted file mode 100644 index c87ef2243..000000000 --- a/db/routines/vn2008/views/edi_genus.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`edi_genus` -AS SELECT `edi`.`genus`.`genus_id` AS `genus_id`, - `edi`.`genus`.`latin_genus_name` AS `latin_genus_name`, - `edi`.`genus`.`entry_date` AS `entry_date`, - `edi`.`genus`.`expiry_date` AS `expiry_date`, - `edi`.`genus`.`change_date_time` AS `change_date_time` -FROM `edi`.`genus` diff --git a/db/routines/vn2008/views/edi_item_feature.sql b/db/routines/vn2008/views/edi_item_feature.sql deleted file mode 100644 index 216bd7cf6..000000000 --- a/db/routines/vn2008/views/edi_item_feature.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`edi_item_feature` -AS SELECT `edi`.`item_feature`.`item_id` AS `item_id`, - `edi`.`item_feature`.`presentation_order` AS `presentation_order`, - `edi`.`item_feature`.`feature` AS `feature`, - `edi`.`item_feature`.`regulation_type` AS `regulation_type`, - `edi`.`item_feature`.`entry_date` AS `entry_date`, - `edi`.`item_feature`.`expiry_date` AS `expiry_date`, - `edi`.`item_feature`.`change_date_time` AS `change_date_time` -FROM `edi`.`item_feature` diff --git a/db/routines/vn2008/views/edi_plant.sql b/db/routines/vn2008/views/edi_plant.sql deleted file mode 100644 index 3537998db..000000000 --- a/db/routines/vn2008/views/edi_plant.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`edi_plant` -AS SELECT `edi`.`plant`.`plant_id` AS `plant_id`, - `edi`.`plant`.`genus_id` AS `genus_id`, - `edi`.`plant`.`specie_id` AS `specie_id`, - `edi`.`plant`.`entry_date` AS `entry_date`, - `edi`.`plant`.`expiry_date` AS `expiry_date`, - `edi`.`plant`.`change_date_time` AS `change_date_time` -FROM `edi`.`plant` diff --git a/db/routines/vn2008/views/edi_type.sql b/db/routines/vn2008/views/edi_type.sql deleted file mode 100644 index 95d73a1ff..000000000 --- a/db/routines/vn2008/views/edi_type.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`edi_type` -AS SELECT `edi`.`type`.`type_id` AS `type_id`, - `edi`.`type`.`type_group_id` AS `type_group_id`, - `edi`.`type`.`description` AS `description`, - `edi`.`type`.`entry_date` AS `entry_date`, - `edi`.`type`.`expiry_date` AS `expiry_date`, - `edi`.`type`.`change_date_time` AS `change_date_time` -FROM `edi`.`type` diff --git a/db/routines/vn2008/views/edi_value.sql b/db/routines/vn2008/views/edi_value.sql deleted file mode 100644 index 27829aa9e..000000000 --- a/db/routines/vn2008/views/edi_value.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`edi_value` -AS SELECT `edi`.`value`.`type_id` AS `type_id`, - `edi`.`value`.`type_value` AS `type_value`, - `edi`.`value`.`type_description` AS `type_description`, - `edi`.`value`.`entry_date` AS `entry_date`, - `edi`.`value`.`expiry_date` AS `expiry_date`, - `edi`.`value`.`change_date_time` AS `change_date_time` -FROM `edi`.`value`