7199-devToTest_2316 #2287

Merged
alexm merged 169 commits from 7199-devToTest_2316 into test 2024-04-11 06:25:23 +00:00
7 changed files with 53 additions and 3 deletions
Showing only changes of commit 9a0b4ef674 - Show all commits

View File

@ -0,0 +1,5 @@
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Proveedores_cargueras`
AS SELECT `fs`.`id` AS `Id_Proveedor`
FROM `vn`.`freightSupplier` `fs`

View File

@ -0,0 +1,6 @@
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Tramos`
AS SELECT `s`.`id` AS `id`,
`s`.`isFree` AS `Tramo`
FROM `vn`.`section` `s`

View File

@ -0,0 +1,8 @@
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`dock`
AS SELECT `d`.`id` AS `id`,
`d`.`code` AS `code`,
`d`.`xPos` AS `xPos`,
`d`.`yPos` AS `yPos`
FROM `vn`.`dock` `d`

View File

@ -1,3 +1,5 @@
-- Place your SQL code here -- Place your SQL code here
ALTER TABLE IF EXISTS `vn2008`.`Tramos` RENAME `vn`.``; ALTER TABLE IF EXISTS `vn2008`.`Tramos` RENAME `vn`.`section`;
ALTER TABLE IF EXISTS `vn`.`section`
CHANGE COLUMN IF EXISTS `Tramo` `section` time NOT NULL;

View File

@ -1,2 +1,3 @@
-- Place your SQL code here -- Place your SQL code here
ALTER TABLE IF EXISTS `vn2008`.`dock` RENAME `vn`.``; ALTER TABLE IF EXISTS `vn2008`.`dock` RENAME `vn`.`dock`;

View File

@ -1,2 +1,5 @@
-- Place your SQL code here -- Place your SQL code here
ALTER TABLE IF EXISTS `vn2008`.`Proveedores_cargueras` RENAME `vn`.``; ALTER TABLE IF EXISTS `vn2008`.`Proveedores_cargueras` RENAME `vn`.`freightSupplier`;
ALTER TABLE IF EXISTS `vn`.`freightSupplier`
CHANGE COLUMN IF EXISTS `Id_Proveedor` `supplierFk` int(10) unsigned NOT NULL;

View File

@ -0,0 +1,25 @@
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Tramos` AS
SELECT 1;
GRANT SELECT ON TABLE vn2008.Tramos TO `employee`;
GRANT SELECT ON TABLE vn.section TO `employee`;
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`dock` AS
SELECT 1;
GRANT SELECT,UPDATE ON TABLE vn2008.dock TO `employee`;
GRANT SELECT ON TABLE vn2008.dock TO `grafana`;
GRANT SELECT,UPDATE ON TABLE vn.dock TO `employee`;
GRANT SELECT ON TABLE vn.dock TO `grafana`;
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Proveedores_cargueras` AS
SELECT 1;
GRANT SELECT ON TABLE vn2008.Proveedores_cargueras TO `buyer`;
GRANT SELECT ON TABLE vn.freightSupplier TO `buyer`;