From 9247a802bd8999bdc18e58f0db68511fb459e43a Mon Sep 17 00:00:00 2001 From: ivanm Date: Mon, 5 Feb 2024 12:21:11 +0100 Subject: [PATCH 1/2] refs #6665 delete unused views --- db/routines/vn2008/views/Articles_botanical.sql | 7 ------- db/routines/vn2008/views/bionic_updating_options.sql | 6 ------ db/routines/vn2008/views/businessReasonEnd.sql | 6 ------ db/routines/vn2008/views/cl_dev.sql | 6 ------ db/routines/vn2008/views/cl_est.sql | 7 ------- 5 files changed, 32 deletions(-) delete mode 100644 db/routines/vn2008/views/Articles_botanical.sql delete mode 100644 db/routines/vn2008/views/bionic_updating_options.sql delete mode 100644 db/routines/vn2008/views/businessReasonEnd.sql delete mode 100644 db/routines/vn2008/views/cl_dev.sql delete mode 100644 db/routines/vn2008/views/cl_est.sql diff --git a/db/routines/vn2008/views/Articles_botanical.sql b/db/routines/vn2008/views/Articles_botanical.sql deleted file mode 100644 index 44edda655..000000000 --- a/db/routines/vn2008/views/Articles_botanical.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`Articles_botanical` -AS SELECT `ab`.`itemFk` AS `Id_Article`, - `ab`.`genusFk` AS `genus_id`, - `ab`.`specieFk` AS `specie_id` -FROM `vn`.`itemBotanical` `ab` diff --git a/db/routines/vn2008/views/bionic_updating_options.sql b/db/routines/vn2008/views/bionic_updating_options.sql deleted file mode 100644 index 7ee531238..000000000 --- a/db/routines/vn2008/views/bionic_updating_options.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`bionic_updating_options` -AS SELECT `t`.`id` AS `buo_id`, - `t`.`description` AS `description` -FROM `vn`.`ticketUpdateAction` `t` diff --git a/db/routines/vn2008/views/businessReasonEnd.sql b/db/routines/vn2008/views/businessReasonEnd.sql deleted file mode 100644 index 459a33a8b..000000000 --- a/db/routines/vn2008/views/businessReasonEnd.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`businessReasonEnd` -AS SELECT `b`.`id` AS `id`, - `b`.`reason` AS `reason` -FROM `vn`.`businessReasonEnd` `b` diff --git a/db/routines/vn2008/views/cl_dev.sql b/db/routines/vn2008/views/cl_dev.sql deleted file mode 100644 index 7364fe833..000000000 --- a/db/routines/vn2008/views/cl_dev.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`cl_dev` -AS SELECT `c`.`id` AS `id`, - `c`.`description` AS `devolucion` -FROM `vn`.`claimRedelivery` `c` diff --git a/db/routines/vn2008/views/cl_est.sql b/db/routines/vn2008/views/cl_est.sql deleted file mode 100644 index 8aa6ecb2e..000000000 --- a/db/routines/vn2008/views/cl_est.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE OR REPLACE DEFINER=`root`@`localhost` - SQL SECURITY DEFINER - VIEW `vn2008`.`cl_est` -AS SELECT `c`.`id` AS `id`, - `c`.`description` AS `estado`, - `c`.`roleFk` AS `roleFk` -FROM `vn`.`claimState` `c` -- 2.40.1 From 6fb198f5796463c66e82770fc35c71caa070a6b4 Mon Sep 17 00:00:00 2001 From: ivanm Date: Mon, 5 Feb 2024 13:09:35 +0100 Subject: [PATCH 2/2] refs #6665 revoke permissions --- db/versions/10871-wheatCyca/00-firstScript.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 db/versions/10871-wheatCyca/00-firstScript.sql diff --git a/db/versions/10871-wheatCyca/00-firstScript.sql b/db/versions/10871-wheatCyca/00-firstScript.sql new file mode 100644 index 000000000..62aff7dac --- /dev/null +++ b/db/versions/10871-wheatCyca/00-firstScript.sql @@ -0,0 +1 @@ +REVOKE SELECT ON TABLE vn2008.Articles_botanical FROM buyer, administrative; -- 2.40.1